public class JSWithDependencies extends ScriptStringBase implements ScriptWithDependencies
Wrapper object that adds dependencies to any object whether it implements ScriptString or not.
COLON, COMMA, DOT, EMPTY_STRING, EQUALS, FUNCTION, LEFT_CURLY_BRACKET, LEFT_ROUND_BRACKET, LEFT_SQUARE_BRACKET, RIGHT_CURLY_BRACKET, RIGHT_ROUND_BRACKET, RIGHT_SQUARE_BRACKET| Constructor and Description |
|---|
JSWithDependencies(Object wrapped,
Iterable<ResourceKey> resources) |
JSWithDependencies(Object wrapped,
ResourceKey... resources) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendScript(Appendable target)
Append JavaScript code to @link
Appendable |
Iterable<ResourceKey> |
getResources()
Returns a list of resources contained in this resource library
|
appendScriptToStringBuilder, toScript, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendScriptToStringBuilder, toScriptpublic JSWithDependencies(Object wrapped, Iterable<ResourceKey> resources)
public JSWithDependencies(Object wrapped, ResourceKey... resources)
public Iterable<ResourceKey> getResources()
ResourceLibraryReturns a list of resources contained in this resource library
The result does not have to be stable; i.e. the returned list of resources may differ for each execution based on context, configuration, time, etc.
getResources in interface ResourceLibrarypublic void appendScript(Appendable target) throws IOException
ScriptStringAppendableappendScript in interface ScriptStringIOExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.