public enum StackExtensionType extends Enum<StackExtensionType>
StackExtension,
ExtensibleJavaScriptStack| Enum Constant and Description |
|---|
AGGREGATION_STRATEGY
Overrides the JavaScript aggregation strategy
for the stack.
|
INITIALIZATION
Deprecated.
Deprecated in 5.4 with no replacement; initialization may be removed in the future.
|
LIBRARY
A JavaScript library.
|
MODULE
A module to aggregate with the stack.
|
STACK
A dependency on another JavaScriptStack.
|
STYLESHEET
A stylesheet.
|
| Modifier and Type | Method and Description |
|---|---|
static StackExtensionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StackExtensionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StackExtensionType LIBRARY
AssetSource.getExpandedAsset(String),
meaning that symbols will be expanded.public static final StackExtensionType STACK
JavaScriptSupport.importStack(String),
JavaScriptStack.getStylesheets()public static final StackExtensionType STYLESHEET
AssetSource.getExpandedAsset(String),
meaning that symbols will be expanded.public static final StackExtensionType MODULE
r.js tool, this does not process
dependencies and is based on a simple regular expression parser.
Note that this only loads the module's code and defines the module as available;
the module's function will not be invoked unless JavaScriptSupport.require(String) is invoked to establish
a dependency.
Note that at this time, shimmed modules can not
be aggregated into stacks properly; the shimmed module will be aggregated, but then will still be loaded via
a subsequent HTTP request.public static final StackExtensionType AGGREGATION_STRATEGY
JavaScriptAggregationStrategy value.public static final StackExtensionType INITIALIZATION
public static StackExtensionType[] values()
for (StackExtensionType c : StackExtensionType.values()) System.out.println(c);
public static StackExtensionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.