public class JSScriptWithTokensProcessor
extends org.springframework.extensions.webscripts.processor.JSScriptProcessor
| Constructor and Description |
|---|
JSScriptWithTokensProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAikauVersion()
Returns the current Aikau version.
|
WebFrameworkConfigElement |
getWebFrameworkConfigElement()
Returns the configuration for the web framework.
|
String |
loadScriptResource(String resource)
Extends the inherited method to replace any "{aikauVersion}" tokens with the current version of
Aikau that is in use.
|
void |
setWebFrameworkConfigElement(WebFrameworkConfigElement webFrameworkConfigElement)
Required by Spring to inject the Web Framework configuration.
|
executeScript, executeScript, findScript, getExtension, getName, init, initProcessor, initScope, isDebugMode, reset, setCompile, setConfigService, setShareSealedScopes, unwrapValueaddProcessorModelExtensions, getScriptLoader, getSearchPath, initLoaders, register, setSearchPathgetScriptProcessorRegistry, onApplicationEvent, setApplicationContext, setScriptProcessorRegistryregisterProcessorExtensionpublic WebFrameworkConfigElement getWebFrameworkConfigElement()
public void setWebFrameworkConfigElement(WebFrameworkConfigElement webFrameworkConfigElement)
webFrameworkConfigElement - WebFrameworkConfigElementpublic String getAikauVersion()
public String loadScriptResource(String resource)
loadScriptResource in interface org.springframework.extensions.surf.core.scripts.ScriptResourceLoaderloadScriptResource in class org.springframework.extensions.webscripts.processor.JSScriptProcessorresource - Script resource to load. Supports either classpath: prefix syntax or a resource path within the WebScript stores.Copyright © 2005–2016 Alfresco Software. All rights reserved.