@NutDaoService public class ClasspathNutDao extends DiskNutDao
A NutDao implementation for classpath accesses.
AbstractNutDao.VersionNumberStrategy, AbstractNutDao.WithRootPathNutDaoPollingScheduler.PollingNutDao.PathFormatAGGREGATE, BASE_PATH, BASE_PATH_AS_SYS_PROP, BEST_EFFORT, CACHE, CACHE_PROVIDER_CLASS, CHARSET, CLOUD_BUCKET, COMPRESS, COMPUTE_VERSION_ASYNCHRONOUSLY, CONTENT_BASED_VERSION_NUMBER, CONVERT, DAO_PREFIX, DISABLE_OPTIMIZATIONS, DOWNLOAD_TO_DISK, ECMA_SCRIPT_VERSION, ENABLE, ENGINE_PREFIX, FILTER_PREFIX, FIXED_VERSION_NUMBER, INIT_PARAM_FUNCTION, INSPECT, LINE_BREAK_POS, LOGIN, OBFUSCATE, PACKER_CLASS_NAME, PASSWORD, POLLING_INTERVAL, PREFIX, PRESERVE_LINE_BREAK, PRESERVE_SEMICOLONS, PROXY_URIS, REGEX, REGEX_EXPRESSIONS, SECRET_PROTOCOL, SERVER_DOMAIN, SERVER_HINT, SERVER_PORT, SPRITE_PROVIDER_CLASS_NAME, TIME_TO_LIVE, USE_INCLUDE_FOR_PATH_PATTERN, USE_NODE_JS, VERBOSE, WEB_WUIC_FACADE, WILDCARD, WRAP_PATTERN, WUIC_PROPERTIES_PATH_PARAM, WUIC_PROPERTIES_SYS_PROP_PARAM, WUIC_SERVLET_CONTEXT_PARAM, WUIC_SERVLET_MULTIPLE_CONG_IN_TAG_SUPPORT, WUIC_SERVLET_XML_PATH_PARAM, WUIC_SERVLET_XML_SYS_PROP_PARAM, WUIC_USE_DEFAULT_CONTEXT_BUILDER_CONFIGURATORS, WUIC_WARMUP_STRATEGY| Constructor and Description |
|---|
ClasspathNutDao(String base,
Boolean basePathAsSysProp,
String[] proxies,
int pollingSeconds,
Boolean regex,
Boolean wildcard,
Boolean contentBasedVersionNumber,
Boolean computeVersionAsynchronously,
String fixedVersionNumber)
Builds a new instance with a base directory.
|
| Modifier and Type | Method and Description |
|---|---|
protected DirectoryPath |
createBaseDirectory()
Creates the
DirectoryPath associated to the AbstractNutDao.basePath. |
accessFor, exists, getLastUpdateTimestampFor, getRegularExpression, getWildcardExpression, listNutsPaths, newInputStream, save, saveSupported, skipStartsWith, toStringabsolutePathOf, computeRealPaths, create, create, getBasePath, getProxyUris, getVersionNumber, getVersionNumberStrategy, proxyUriFor, run, shutdown, withRootPathgetNutObservers, getPollingInterval, observe, setPollingInterval@ConfigConstructor public ClasspathNutDao(@StringConfigParam(defaultValue="/",propertyKey="c.g.wuic.dao.basePath") String base, @BooleanConfigParam(defaultValue=false,propertyKey="c.g.wuic.dao.basePathAsSystemProperty") Boolean basePathAsSysProp, @ObjectConfigParam(defaultValue="",propertyKey="c.g.wuic.dao.proxyUris",setter=ProxyUrisPropertySetter.class) String[] proxies, @IntegerConfigParam(defaultValue=-1,propertyKey="c.g.wuic.dao.pollingInterval") int pollingSeconds, @BooleanConfigParam(defaultValue=false,propertyKey="c.g.wuic.dao.regex") Boolean regex, @BooleanConfigParam(defaultValue=false,propertyKey="c.g.wuic.dao.wildcard") Boolean wildcard, @BooleanConfigParam(defaultValue=false,propertyKey="c.g.wuic.dao.contentBasedVersionNumber") Boolean contentBasedVersionNumber, @BooleanConfigParam(defaultValue=true,propertyKey="c.g.wuic.computeVersionAsynchronously") Boolean computeVersionAsynchronously, @StringConfigParam(defaultValue="",propertyKey="c.g.wuic.fixedVersionNumber") String fixedVersionNumber)
Builds a new instance with a base directory.
base - the directory where we have to look upbasePathAsSysProp - true if the base path is a system propertypollingSeconds - the interval for polling operations in seconds (-1 to deactivate)proxies - the proxies URIs in front of the nutregex - if the path should be considered as a regex or notwildcard - if the path should be considered as a wildcard or notcontentBasedVersionNumber - true if version number is computed from nut content, false if based on timestampcomputeVersionAsynchronously - (@code true} if version number can be computed asynchronously, false otherwiseprotected DirectoryPath createBaseDirectory() throws IOException
Creates the DirectoryPath associated to the AbstractNutDao.basePath.
createBaseDirectory in class DiskNutDaoDirectoryPathIOException - if any I/O error occursCopyright © 2012-2015. All Rights Reserved.