public class ConfigImpl extends Object implements IConfig, IShutdownListener, IOptionsListener
Modifier and Type | Class and Description |
---|---|
protected static class |
ConfigImpl.Alias |
static class |
ConfigImpl.Console
Console logger for javascript runtime.
|
protected class |
ConfigImpl.Package |
IConfig.IAlias, IConfig.IPackage, IConfig.Location
Modifier and Type | Field and Description |
---|---|
protected List<IServiceRegistration> |
serviceRegs |
ALIASES_CONFIGPARAM, BASEURL_CONFIGPARAM, CACHEBUST_CONFIGPARAM, COERCEUNDEFINEDTOFALSE_CONFIGPARAM, DEPS_CONFIGPARAM, DEPSINCLUDEBASEURL_CONFIGPARAM, EXPIRES_CONFIGPARAM, HAS_CONFIGPARAM, JSPLUGINDELEGATORS_CONFIGPARAM, NOT_FOUND, NOTICE_CONFIGPARAM, PACKAGES_CONFIGPARAM, PATHS_CONFIGPARAM, PKGLOCATION_CONFIGPARAM, PKGMAIN_CONFIGPARAM, PKGMAIN_DEFAULT, PKGNAME_CONFIGPARAM, TEXTPLUGINDELEGATORS_CONFIGPARAM
Modifier | Constructor and Description |
---|---|
|
ConfigImpl(IAggregator aggregator) |
protected |
ConfigImpl(IAggregator aggregator,
boolean forTest)
This constructor is just for testing purpose.
|
|
ConfigImpl(IAggregator aggregator,
URI configUri,
org.mozilla.javascript.Scriptable rawConfig) |
|
ConfigImpl(IAggregator aggregator,
URI configUri,
String configScript) |
|
ConfigImpl(IAggregator aggregator,
URI configUri,
String configScript,
boolean forTest)
This constructor is just for testing purpose.
|
Modifier and Type | Method and Description |
---|---|
protected String |
_resolve(String name,
Features features,
Set<String> dependentFeatures,
boolean resolveAliases,
boolean evaluateHasPluginConditionals,
int recursionCount,
StringBuffer sb)
Resolves a module id by applying alias resolution and has! loader plugin resolution.
|
protected void |
callConfigModifiers(org.mozilla.javascript.Scriptable rawConfig)
Calls the registered config modifiers to give them an opportunity to
modify the raw config before config properties are evaluated.
|
protected void |
callConfigScopeModifiers(org.mozilla.javascript.Scriptable scope)
Calls the registered config scope modifiers to give them an opportunity to
prepare the scope object prior to evaluating the config JavaScript
|
protected IAggregator |
getAggregator() |
List<IConfig.IAlias> |
getAliases()
Returns the list of aliases specified by the
aliases config
param. |
IConfig.Location |
getBase()
Returns the value of the
baseUrl config param. |
String |
getCacheBust()
Returns the value of the
cacheBust config param. |
org.mozilla.javascript.Scriptable |
getConfigScope()
Returns the scope object used to evaluate the config JavaScript.
|
URI |
getConfigUri()
Returns the URI for the config JavaScript file from which this config was read.
|
Features |
getDefaultFeatures(String url)
Returns the default features specified using the
IConfig.HAS_CONFIGPARAM config param. |
List<String> |
getDeps()
Returns the value of the
deps config param as a list of strings. |
int |
getExpires()
Returns the value of the
expires config param as an integer. |
Set<String> |
getJsPluginDelegators()
Returns the list of plugin names specified with the
IConfig.JSPLUGINDELEGATORS_CONFIGPARAM
config param. |
String |
getNotice()
Returns the content of the resource specified by the
notice
config param. |
Map<String,IConfig.Location> |
getPackageLocations()
Returns an ordered mapping of module ids to resource locations for all of the
packages locations defined in this config. |
Map<String,IConfig.IPackage> |
getPackages()
Returns the packages specified by the
packages config param. |
Map<String,IConfig.Location> |
getPaths()
Returns the path mappings for module names to resource URIs specified by
the
paths config param. |
Object |
getProperty(String propname,
Class<?> hint)
Returns the value of the named config property.
|
org.mozilla.javascript.Scriptable |
getRawConfig()
Returns the raw config data after the config has been modified by any
IConfigModifier
services that have been registered for the aggregator that this config is associated with,
and after any string substitutions have been performed. |
Set<String> |
getTextPluginDelegators()
Returns the list of plugin names specified with the
IConfig.TEXTPLUGINDELEGATORS_CONFIGPARAM
config param. |
protected void |
init() |
protected void |
initForTest()
This method is for test purposes and should not be used for production.
|
boolean |
isCoerceUndefinedToFalse()
Returns the value of the
coerceUndefinedToFalse config param. |
boolean |
isDepsIncludeBaseUrl()
Returns the value of the
depsIncludeBaseUrl config param. |
long |
lastModified()
Returns the last-modified date of the config JavaScript file at the time that
it was read in order to produce this config object.
|
protected List<IConfig.IAlias> |
loadAliases(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the list of aliases defined in the server-side
config JavaScript
|
protected IConfig.Location |
loadBaseURI(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the base URI specified by the "baseUrl" property
in the server-side config JavaScript
|
protected String |
loadCacheBust(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the string specified by the
cacheBust
property in the server-side config JavaScript. |
protected boolean |
loadCoerceUndefinedToFalse(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the flag indicating if features not specified
in the feature set from the request should be treated as false when
evaluating has conditionals in javascript code.
|
protected void |
loadConfig() |
protected org.mozilla.javascript.Scriptable |
loadConfig(InputStream in) |
protected org.mozilla.javascript.Scriptable |
loadConfig(String configScript)
Loads the config JavaScript and returns the parsed config in a Map
|
protected URI |
loadConfigUri()
Initializes and returns the URI to the server-side config JavaScript
|
protected Map<String,Object> |
loadDefaultFeatures(org.mozilla.javascript.Scriptable cfg) |
protected List<String> |
loadDeps(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the list of module dependencies specified in the
server-side config JavaScript.
|
protected boolean |
loadDepsIncludeBaseUrl(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the flag indicating if files and directories
located under the base directory should be scanned for javascript files
when building the module dependency mappings.
|
protected int |
loadExpires(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the expires time from the server-side
config JavaScript
|
protected Set<String> |
loadJsPluginDelegators(org.mozilla.javascript.Scriptable cfg) |
protected IConfig.Location |
loadLocation(Object locObj,
boolean isFolder) |
protected String |
loadNotice(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the notice string specified by the
notice
property in the server-side config JavaScript. |
protected Map<String,IConfig.IPackage> |
loadPackages(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the map of packages based on the information in
the server-side config JavaScript
|
protected Map<String,IConfig.Location> |
loadPaths(org.mozilla.javascript.Scriptable cfg)
Initializes and returns the map of paths based on the information in the
server-side config JavaScript
|
protected Set<String> |
loadPluginDelegators(org.mozilla.javascript.Scriptable cfg,
String name)
Common routine to load text or js plugin delegators
|
protected Set<String> |
loadTextPluginDelegators(org.mozilla.javascript.Scriptable cfg) |
URI |
locateModuleResource(String mid)
Returns the URI to the resource on the server for the specified module
id, or null if the resource cannot be located.
|
protected IConfig.IAlias |
newAlias(Object pattern,
Object replacement) |
protected ConfigImpl.Console |
newConsole() |
protected com.ibm.jaggr.core.impl.config.ConfigImpl.GetPropertyFunction |
newGetPropertyFunction(org.mozilla.javascript.Scriptable scriptable,
IAggregator aggregator) |
protected com.ibm.jaggr.core.impl.config.ConfigImpl.HasFunction |
newHasFunction(org.mozilla.javascript.Scriptable scriptable,
Features features) |
protected IConfig.IPackage |
newPackage(Object obj) |
void |
optionsUpdated(IOptions options,
long sequence)
This method is called when the options are loaded/changed.
|
protected String |
processConfig(String configScript)
Add any processing logic to the config file like replacing any place holders from a
properties file.
|
protected void |
registerServices() |
String |
resolve(String mid,
Features features,
Set<String> dependentFeatures,
StringBuffer sb,
boolean resolveAliases)
Legacy method that calls
IConfig.resolve(String, Features, Set, StringBuffer, boolean, boolean)
with resolveHasPlugin equal to true. |
String |
resolve(String mid,
Features features,
Set<String> dependentFeatures,
StringBuffer sb,
boolean resolveAliases,
boolean evaluateHasPluginConditionals)
Resolves a module id by applying the following mappings in the indicated
order.
|
protected String |
resolveAliases(String name,
Features features,
Set<String> dependentFeatures,
StringBuffer sb)
Applies alias mappings to a module name.
|
protected String |
resolveHasPlugin(String expression,
Features features,
Set<String> dependentFeatures,
boolean resolveAliases,
boolean evaluateHasPluginConditionals,
int recursionCount,
StringBuffer sb)
Resolves has! loader plugin expressions by calling _resolve() on each of the modules named
in the expression.
|
protected void |
setConfigUri(URI configUri) |
protected void |
setLastModified(long lastModified) |
protected void |
setRawConfig(org.mozilla.javascript.Scriptable rawConfig) |
void |
shutdown(IAggregator aggregator)
This method is called from within the aggregator's
GenericServlet.destroy() method to notify listeners that the servlet
is shutting down. |
protected URI |
toResourceUri(URI uri,
String remainder) |
String |
toString()
Returns the stringized source code representation of the raw config
returned by
IConfig.getRawConfig() . |
static String |
toString(Object obj) |
protected List<IServiceRegistration> serviceRegs
public ConfigImpl(IAggregator aggregator) throws IOException
IOException
public ConfigImpl(IAggregator aggregator, URI configUri, String configScript) throws IOException
IOException
public ConfigImpl(IAggregator aggregator, URI configUri, org.mozilla.javascript.Scriptable rawConfig) throws IOException
IOException
protected ConfigImpl(IAggregator aggregator, boolean forTest) throws URISyntaxException, FileNotFoundException
aggregator
- forTest
- URISyntaxException
FileNotFoundException
public ConfigImpl(IAggregator aggregator, URI configUri, String configScript, boolean forTest) throws IOException
aggregator
- configUri
- configScript
- forTest
- IOException
protected void loadConfig() throws IOException, URISyntaxException
IOException
URISyntaxException
protected void init() throws IOException
IOException
protected void initForTest() throws IOException
IOException
public long lastModified()
IConfig
lastModified
in interface IConfig
public URI getConfigUri()
IConfig
IAggregator.newResource(URI)
to convert the URI into an IResource
and then use IResource.getURI()
to obtain a platform URI that you can use to open the file, etc.getConfigUri
in interface IConfig
protected IAggregator getAggregator()
public IConfig.Location getBase()
IConfig
baseUrl
config param. This is the base
URI to use for all relative URIs specified in this config. If baseUrl is
not absolute, then it is assumed to be relative to the root of the bundle
defining the servlet. Note that the property name specifies Url, with a
lower-case L, instead of URI with an upper-case i, to maintain symmetry
with the client-side config.
Files and folders located under the folder specified by baseUrl are not
scanned when the Aggregator builds the module dependency map used for
require list expansion unless the depsIncludeBaseUrl
config param
is specified with a value of true.public Map<String,IConfig.IPackage> getPackages()
IConfig
packages
config param.getPackages
in interface IConfig
IConfig.IPackage
public Map<String,IConfig.Location> getPaths()
IConfig
paths
config param. The path URIs are assumed to be relative
to baseUrl, unless the URI starts with a "/" or specfies a protocol.public List<IConfig.IAlias> getAliases()
IConfig
aliases
config
param.getAliases
in interface IConfig
public boolean isDepsIncludeBaseUrl()
IConfig
depsIncludeBaseUrl
config param.
If specified with a value of true, then the files and folders under the directory specified by baseUrl will be scanned when the Aggregator builds the module dependency map used for require list expansion. The default value is false.
isDepsIncludeBaseUrl
in interface IConfig
depsIncludeBaseUrl
config parampublic int getExpires()
IConfig
expires
config param as an integer.
If specified, this value will be used to specified in the Cache-Control:max-age response header. If the value is zero (the default), then the Cache-Control:maz-age header will not be specified in the response.
getExpires
in interface IConfig
expires
config param or zeropublic List<String> getDeps()
IConfig
deps
config param as a list of strings.
This property is analogous to the client-side AMD config deps property, which specifies the modules that should be loaded before the application's require.callback method is called. On the server, this property is used to trim the list of expanded dependencies for all require list expansions. Any modules listed here, along with the nested dependencies of the listed modules, will be excluded from expanded require lists for all require() calls in the application. In general, the client-side and server-side AMD configs should both specify the same modules in the deps property, although, this is not a requirement.
If the deps property is not specified in the config, then this function returns an empty list.
This method is deprecated in favor of
IRequestedModuleNames.getExcludes()
which is
specified by Aggregator generated requests based on the modules requested
in the boot layer for the application.
public boolean isCoerceUndefinedToFalse()
IConfig
coerceUndefinedToFalse
config param.
If true, then the Aggregator will treat undefined features as if they were defined with a value of false. This applies to has.js feature trimming of javascript code. If this value is false, then has.js conditionals for undefined features are left unchanged. If the value is true, then conditionals involving undefined features are trimmed based on the value of the feature evaluating to false. The default value for this option is false.
isCoerceUndefinedToFalse
in interface IConfig
coerceUndefinedToFalse
config parampublic String getNotice()
IConfig
notice
config param.
This resource contains the notice text that will be output at the beginning of every Aggregator response. The notice text should be in the form of a javascript block comment. The Aggregator does not do any processing on the notice text.
public String getCacheBust()
IConfig
cacheBust
config param.
This is an arbitrary string specified by the application that is associated with the serialized meta-data for aggregator caches and the module dependency maps. When these data structures are de-serialized on server restarts, the saved value is compared against the value that is read from the current config, and if the values don't match, then the de-serialized data is discarded and the caches and dependency maps are deleted and rebuilt.
The value of this string is also used for the client-side cacheBust property in the loader extension combo config if it is not specified by the client.
getCacheBust
in interface IConfig
cacheBust
config parampublic Set<String> getTextPluginDelegators()
IConfig
IConfig.TEXTPLUGINDELEGATORS_CONFIGPARAM
config param. Loader plugins specified here delegate the loading of the resources they handle
to the text module loader. When doing server-side expansion of module dependencies for a
bootstrap layer, resources specifying loader plugins included in this list will be included
in the response as a text resource.getTextPluginDelegators
in interface IConfig
public Set<String> getJsPluginDelegators()
IConfig
IConfig.JSPLUGINDELEGATORS_CONFIGPARAM
config param. Loader plugins specified here delegate the loading of the resources they handle
to the javascript module loader (e.g. the i18n plugin). When doing server-side expansion of
module dependencies for a bootstrap layer, resources specifying loader plugins included in
this list will be included in the response as a javascript resources.getJsPluginDelegators
in interface IConfig
public Features getDefaultFeatures(String url)
IConfig
IConfig.HAS_CONFIGPARAM
config param. These
are default values for features that are overridden by any features defined in the request.
The default features are specified as a property map of name/value pairs. If the value of a property is a JavaScript function, then the function is invoked at the time this method is called to evalute the value of the feature. The function takes one formal parameter which is the request URL, and the returned value will be coerced to a boolean before being assigned as the value of the feature.
getDefaultFeatures
in interface IConfig
url
- the request URL, or null.public org.mozilla.javascript.Scriptable getRawConfig()
IConfig
IConfigModifier
services that have been registered for the aggregator that this config is associated with,
and after any string substitutions have been performed. The runtime type of the object is
dependent upon the config processor implementation.
The returned object is read-only, so it may not be modified.
getRawConfig
in interface IConfig
IConfigModifier
public org.mozilla.javascript.Scriptable getConfigScope()
IConfig
getConfigScope
in interface IConfig
protected void setRawConfig(org.mozilla.javascript.Scriptable rawConfig)
protected void setLastModified(long lastModified)
protected void setConfigUri(URI configUri)
public Map<String,IConfig.Location> getPackageLocations()
IConfig
packages
locations defined in this config.getPackageLocations
in interface IConfig
public URI locateModuleResource(String mid)
IConfig
locateModuleResource
in interface IConfig
mid
- The module idprotected URI toResourceUri(URI uri, String remainder) throws URISyntaxException
URISyntaxException
public String resolve(String mid, Features features, Set<String> dependentFeatures, StringBuffer sb, boolean resolveAliases)
IConfig
IConfig.resolve(String, Features, Set, StringBuffer, boolean, boolean)
with resolveHasPlugin
equal to true.resolve
in interface IConfig
mid
- The module name to resolvefeatures
- Features that are defined in the requestdependentFeatures
- Output - Set of feature names that the returned value is
conditioned on. Used for cache management.sb
- If not null, then a reference to a string buffer that can be
used to specify debug/diagnostic information
about the module name resolution. For example, the resolver may
indicate that alias resolution was not performed due to a
missing required feature.resolveAliases
- If true, then module name aliases will be resolvedpublic String resolve(String mid, Features features, Set<String> dependentFeatures, StringBuffer sb, boolean resolveAliases, boolean evaluateHasPluginConditionals)
IConfig
resolveAliases
is true, then call any alias resolvers to
resolve module name aliasesresolve
in interface IConfig
mid
- The module name to resolvefeatures
- Features that are defined in the requestdependentFeatures
- Output - Set of feature names that the returned value is
conditioned on. Used for cache management.sb
- If not null, then a reference to a string buffer that can be
used to specify debug/diagnostic information
about the module name resolution. For example, the resolver may
indicate that alias resolution was not performed due to a
missing required feature.resolveAliases
- If true, then module name aliases will be resolvedevaluateHasPluginConditionals
- If true, then attempt to evaluate the has plugin conditionals using the features
provided in features
, potentially eliminating the has! loader plugin
from the returned value if all features can be resolved. If false, then the
conditionals are retained in the result, although the expression may change
if new conditionals are introduced by alias resolution.name
should be returned.protected String resolveHasPlugin(String expression, Features features, Set<String> dependentFeatures, boolean resolveAliases, boolean evaluateHasPluginConditionals, int recursionCount, StringBuffer sb)
expression
- The expression to resolve, excluding the has plugin name
(e.g. feature?moduleA:moduleB)features
- Features that are defined in the requestdependentFeatures
- Output - Set of feature names that the returned value is
conditioned on. Used for cache management.resolveAliases
- If true, then module name aliases will be resolvedevaluateHasPluginConditionals
- If true, then attempt to evaluate the has plugin conditionals using the features
provided in features
, potentially eliminating the has! loader plugin
from the returned value if all features can be resolved. If false, then the
conditionals are retained in the result, although the expression may change
if new conditionals are introduced by alias resolution.sb
- If not null, then a reference to a string buffer that can
be used by the resolver to indicate debug/diagnostic information
about the alias resolution. For example, the resolver may
indicate that alias resolution was not performed due to
a missing required feature.recursionCount
- Counter used to guard against runaway recursionmid
if the
features specified by the loader plugin are not defined.protected String _resolve(String name, Features features, Set<String> dependentFeatures, boolean resolveAliases, boolean evaluateHasPluginConditionals, int recursionCount, StringBuffer sb)
name
- The module name to map. May specify pluginsfeatures
- Features that are defined in the requestdependentFeatures
- Output - Set of feature names that the returned value is
conditioned on. Used for cache management.resolveAliases
- If true, then module name aliases will be resolvedevaluateHasPluginConditionals
- If true, then attempt to evaluate the has plugin conditionals using the features
provided in features
, potentially eliminating the has! loader plugin
from the returned value if all features can be resolved. If false, then the
conditionals are retained in the result, although the expression may change
if new conditionals are introduced by alias resolution.recursionCount
- Counter used to guard against runaway recursionsb
- If not null, then a reference to a string buffer that can
be used by the resolver to indicate debug/diagnostic information
about the alias resolution. For example, the resolver may
indicate that alias resolution was not performed due to
a missing required feature.protected String resolveAliases(String name, Features features, Set<String> dependentFeatures, StringBuffer sb)
name
- The module name to map. May specify pluginsfeatures
- Features that are defined in the requestdependentFeatures
- Output - Set of feature names that the returned value is
conditioned on. Used for cache management.sb
- If not null, then a reference to a string buffer that can
be used by the resolver to indicate debug/diagnostic information
about the alias resolution. For example, the resolver may
indicate that alias resolution was not performed due to
a missing required feature.name
if there is
not mapping for this module name.protected URI loadConfigUri() throws URISyntaxException, FileNotFoundException
URISyntaxException
FileNotFoundException
protected IConfig.Location loadBaseURI(org.mozilla.javascript.Scriptable cfg) throws URISyntaxException
cfg
- the parsed config JavaScriptURISyntaxException
protected org.mozilla.javascript.Scriptable loadConfig(InputStream in) throws MalformedURLException, IOException
MalformedURLException
IOException
protected String processConfig(String configScript)
configScript
- The javascript config as a text stringprotected org.mozilla.javascript.Scriptable loadConfig(String configScript) throws IOException
configScript
- The javascript config as a text stringIOException
protected Map<String,IConfig.IPackage> loadPackages(org.mozilla.javascript.Scriptable cfg) throws URISyntaxException
cfg
- The parsed config JavaScript as a properties mapURISyntaxException
protected Map<String,IConfig.Location> loadPaths(org.mozilla.javascript.Scriptable cfg) throws URISyntaxException
cfg
- The parsed config JavaScript as a properties mapURISyntaxException
protected List<IConfig.IAlias> loadAliases(org.mozilla.javascript.Scriptable cfg) throws IOException
cfg
- The parsed config JavaScript as a properties mapIOException
protected List<String> loadDeps(org.mozilla.javascript.Scriptable cfg)
cfg
- The parsed config JavaScript as a properties mapprotected int loadExpires(org.mozilla.javascript.Scriptable cfg)
cfg
- The parsed config JavaScript as a properties mapprotected boolean loadDepsIncludeBaseUrl(org.mozilla.javascript.Scriptable cfg)
cfg
- The parsed config JavaScript as a properties mapprotected boolean loadCoerceUndefinedToFalse(org.mozilla.javascript.Scriptable cfg)
cfg
- The parsed config JavaScript as a properties mapprotected String loadNotice(org.mozilla.javascript.Scriptable cfg) throws IOException, URISyntaxException
notice
property in the server-side config JavaScript.cfg
- The parsed config JavaScript as a properties mapnotice
property valueIOException
URISyntaxException
protected Set<String> loadPluginDelegators(org.mozilla.javascript.Scriptable cfg, String name)
cfg
- the config object as a Scriptable
name
- the name of the plugin delegator selectorprotected Set<String> loadTextPluginDelegators(org.mozilla.javascript.Scriptable cfg)
protected Set<String> loadJsPluginDelegators(org.mozilla.javascript.Scriptable cfg)
protected IConfig.Location loadLocation(Object locObj, boolean isFolder) throws URISyntaxException
URISyntaxException
protected String loadCacheBust(org.mozilla.javascript.Scriptable cfg)
cacheBust
property in the server-side config JavaScript.cfg
- The parsed config JavaScript as a properties mapcacheBust
property valueprotected Map<String,Object> loadDefaultFeatures(org.mozilla.javascript.Scriptable cfg)
protected void callConfigModifiers(org.mozilla.javascript.Scriptable rawConfig)
rawConfig
- The config object as a Scriptable
.protected void callConfigScopeModifiers(org.mozilla.javascript.Scriptable scope)
scope
- The object representing the execution scope for the evaluation.public String toString()
IConfig
IConfig.getRawConfig()
. Changes in this string may be used to
track config changes. This method is preferable to using IConfig.lastModified()
because external factors besides the config file (such as changes in the
values of string substitution variables) may result in config changes.public Object getProperty(String propname, Class<?> hint)
IConfig
hint
.
The value returned may be one of the following:
Boolean
Number
String
hint
is nullhint
if the value can be convertedIConfig.NOT_FOUND
getProperty
in interface IConfig
propname
- the name of the config propertyhint
- the class to try to convert the value to if not a primitive typepublic void optionsUpdated(IOptions options, long sequence)
IOptionsListener
optionsUpdated
in interface IOptionsListener
options
- The new options. Note that changes to the options may occur
in-place, using the same IOptions object with updated values,
or may result in a new object instance. This interface does not
specify which approach is used by an implementation.sequence
- The sequence number. Notifications for different listener
events (options, config, dependencies) that have the same
cause have the same sequence number. The sequence number is
incremented for subsequent event causes, but there is no
guarantee about the the values for subsequent notifications
other than that they will be increasing.public void shutdown(IAggregator aggregator)
IShutdownListener
GenericServlet.destroy()
method to notify listeners that the servlet
is shutting down.shutdown
in interface IShutdownListener
aggregator
- The aggregator that is shutting downprotected void registerServices()
protected com.ibm.jaggr.core.impl.config.ConfigImpl.GetPropertyFunction newGetPropertyFunction(org.mozilla.javascript.Scriptable scriptable, IAggregator aggregator)
protected com.ibm.jaggr.core.impl.config.ConfigImpl.HasFunction newHasFunction(org.mozilla.javascript.Scriptable scriptable, Features features)
protected ConfigImpl.Console newConsole()
protected IConfig.IPackage newPackage(Object obj) throws URISyntaxException
URISyntaxException
protected IConfig.IAlias newAlias(Object pattern, Object replacement)
Copyright © 2011-2015 IBM. All Rights Reserved.