public interface JavaScriptStack
ThreadLocale
service in order to determine the current locale (if any
of the JavaScript library or stylesheet assets are localized). They will generally need to inject the
AssetSource
service as well.
The ExtensibleJavaScriptStack
is the best way to create new stacks.ThreadLocale
,
ExtensibleJavaScriptStack
Modifier and Type | Method and Description |
---|---|
String |
getInitialization()
Deprecated.
Deprecated in Tapestry 5.4; may be removed in a future release. Implementations
may return null.
|
JavaScriptAggregationStrategy |
getJavaScriptAggregationStrategy()
Identifies how to aggregate JavaScript within the stack.
|
List<Asset> |
getJavaScriptLibraries()
Returns a list of localized assets for JavaScript libraries that form the stack.
|
List<String> |
getModules()
Returns a list of modules to include with the stack, when aggregating the stack's JavaScript.
|
List<String> |
getStacks()
Returns a list of JavaScriptStack names that this stack depends on.
|
List<StylesheetLink> |
getStylesheets()
Returns a list of localized links for stylesheets that form the stack.
|
List<String> getStacks()
List<Asset> getJavaScriptLibraries()
List<StylesheetLink> getStylesheets()
List<String> getModules()
ModuleManager
,
SymbolConstants.COMBINE_SCRIPTS
JavaScriptAggregationStrategy getJavaScriptAggregationStrategy()
JavaScriptAggregationStrategy.COMBINE_AND_MINIMIZE
.String getInitialization()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.