public interface JavaScriptStack
A JavaScript assets of a stack may (when enabled) be exposed to the client as a single URL (identifying the stack by name). The individual assets are combined into a single virtual asset, which is then streamed to the client.
Implementations may need to inject the 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.
ThreadLocale
Modifier and Type | Method and Description |
---|---|
String |
getInitialization()
Returns static JavaScript initialization for the stack.
|
List<Asset> |
getJavaScriptLibraries()
Returns a list of localized assets for JavaScript libraries that form the stack.
|
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()
String getInitialization()
Copyright © 2003-2012 The Apache Software Foundation.