Class ScriptEngineFactory
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<groovy.util.GroovyScriptEngine>
-
- org.craftercms.deployer.utils.scripting.ScriptEngineFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<groovy.util.GroovyScriptEngine>
,org.springframework.beans.factory.InitializingBean
public class ScriptEngineFactory extends org.springframework.beans.factory.config.AbstractFactoryBean<groovy.util.GroovyScriptEngine>
Implementation ofFactoryBean
forGroovyScriptEngine
- Since:
- 3.1.12
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
sandboxEnabled
Indicates if the sandbox should be enabledprotected String[]
urls
List of relative paths to load scripts
-
Constructor Summary
Constructors Constructor Description ScriptEngineFactory(String[] urls, boolean sandboxEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected groovy.util.GroovyScriptEngine
createInstance()
Class<?>
getObjectType()
-
-
-
Field Detail
-
urls
protected String[] urls
List of relative paths to load scripts
-
sandboxEnabled
protected boolean sandboxEnabled
Indicates if the sandbox should be enabled
-
-
Constructor Detail
-
ScriptEngineFactory
@ConstructorProperties({"urls","sandboxEnabled"}) public ScriptEngineFactory(String[] urls, boolean sandboxEnabled)
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<groovy.util.GroovyScriptEngine>
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean<groovy.util.GroovyScriptEngine>
-
-