|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.services.javascript.ExtensibleJavaScriptStack
@UsesOrderedConfiguration(value=StackExtension.class) public class ExtensibleJavaScriptStack
An extensible implementation of JavaScriptStack
that can be used as the implementation of a service.
The contributions to the service are used to supply the libraries, stylesheets, and initialization for a
JavaScriptStack, allowing the stack to be more dynamically configured. In practice, one will use
ServiceBinder.bind(Class, Class)
and ServiceBindingOptions.withMarker(Class...)
to construct the
service, then use the marker annotation to inject the service when contributing the service into to the
JavaScriptStackSource
.
A limitation of this implementation is that the contributed assets are not localized at all.
StackExtension
Constructor Summary | |
---|---|
ExtensibleJavaScriptStack(AssetSource assetSource,
List<StackExtension> configuration)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensibleJavaScriptStack(AssetSource assetSource, List<StackExtension> configuration)
Method Detail |
---|
public List<String> getStacks()
JavaScriptStack
getStacks
in interface JavaScriptStack
public List<Asset> getJavaScriptLibraries()
JavaScriptStack
getJavaScriptLibraries
in interface JavaScriptStack
public List<StylesheetLink> getStylesheets()
JavaScriptStack
getStylesheets
in interface JavaScriptStack
public String getInitialization()
JavaScriptStack
getInitialization
in interface JavaScriptStack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |