public class Jsr233CompiledScriptFactory extends Object implements ScriptFactory
ScriptFactory for JSR 233 compiled scripts| Modifier and Type | Field and Description |
|---|---|
protected org.craftercms.core.util.cache.CacheTemplate |
cacheTemplate |
static String |
DEFAULT_SCRIPT_ENGINE_NAME |
static String |
DEFAULT_SCRIPT_FILE_EXTENSION |
protected Map<String,Object> |
globalVariables |
protected Compilable |
scriptEngine |
protected String |
scriptEngineName |
protected String |
scriptFileExtension |
protected org.craftercms.core.service.ContentStoreService |
storeService |
| Constructor and Description |
|---|
Jsr233CompiledScriptFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Script |
getCachedScript(SiteContext siteContext,
String url) |
Script |
getScript(String url) |
String |
getScriptFileExtension() |
void |
init() |
void |
setCacheTemplate(org.craftercms.core.util.cache.CacheTemplate cacheTemplate) |
void |
setGlobalVariables(Map<String,Object> globalVariables) |
void |
setScriptEngineName(String scriptEngineName) |
void |
setScriptFileExtension(String scriptFileExtension) |
void |
setStoreService(org.craftercms.core.service.ContentStoreService storeService) |
public static final String DEFAULT_SCRIPT_ENGINE_NAME
public static final String DEFAULT_SCRIPT_FILE_EXTENSION
protected org.craftercms.core.util.cache.CacheTemplate cacheTemplate
protected org.craftercms.core.service.ContentStoreService storeService
protected String scriptEngineName
protected String scriptFileExtension
protected Compilable scriptEngine
public void setCacheTemplate(org.craftercms.core.util.cache.CacheTemplate cacheTemplate)
public void setStoreService(org.craftercms.core.service.ContentStoreService storeService)
public void setScriptEngineName(String scriptEngineName)
public void setScriptFileExtension(String scriptFileExtension)
@PostConstruct public void init()
public String getScriptFileExtension()
getScriptFileExtension in interface ScriptFactorypublic Script getScript(String url) throws ScriptException
getScript in interface ScriptFactoryScriptExceptionprotected Script getCachedScript(SiteContext siteContext, String url) throws ScriptException
ScriptExceptionCopyright © 2014 CrafterCMS. All Rights Reserved.