Class JavaScriptStackSourceImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.javascript.JavaScriptStackSourceImpl
-
- All Implemented Interfaces:
JavaScriptStackSource
public class JavaScriptStackSourceImpl extends Object implements JavaScriptStackSource
-
-
Constructor Summary
Constructors Constructor Description JavaScriptStackSourceImpl(Map<String,JavaScriptStack> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaScriptStackfindStack(String name)Gets a stack by name (ignoring case).JavaScriptStackfindStackForJavaScriptLibrary(Resource resource)Attempts to find the stack containing the indicated JavaScript library.JavaScriptStackgetStack(String name)Gets a stack by name (ignoring case).List<String>getStackNames()Returns the names of all stacks, in sorted order.
-
-
-
Constructor Detail
-
JavaScriptStackSourceImpl
public JavaScriptStackSourceImpl(Map<String,JavaScriptStack> configuration)
-
-
Method Detail
-
getStack
public JavaScriptStack getStack(String name)
Description copied from interface:JavaScriptStackSourceGets a stack by name (ignoring case).- Specified by:
getStackin interfaceJavaScriptStackSource- Returns:
- named stack
-
findStack
public JavaScriptStack findStack(String name)
Description copied from interface:JavaScriptStackSourceGets a stack by name (ignoring case).- Specified by:
findStackin interfaceJavaScriptStackSource- Returns:
- named stack, or null if not found
-
getStackNames
public List<String> getStackNames()
Description copied from interface:JavaScriptStackSourceReturns the names of all stacks, in sorted order.- Specified by:
getStackNamesin interfaceJavaScriptStackSource
-
findStackForJavaScriptLibrary
public JavaScriptStack findStackForJavaScriptLibrary(Resource resource)
Description copied from interface:JavaScriptStackSourceAttempts to find the stack containing the indicated JavaScript library.- Specified by:
findStackForJavaScriptLibraryin interfaceJavaScriptStackSource- Parameters:
resource- identifies a potential JavaScript Library- Returns:
- the stack if found, or null
- See Also:
JavaScriptStack.getJavaScriptLibraries()
-
-