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 of
FactoryBean
for GroovyScriptEngine
- Since:
- 3.1.12
- Author:
- joseross
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Indicates if the sandbox should be enabledprotected String[]
List of relative paths to load scriptsFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
urls
List of relative paths to load scripts -
sandboxEnabled
protected boolean sandboxEnabledIndicates if the sandbox should be enabled
-
-
Constructor Details
-
ScriptEngineFactory
@ConstructorProperties({"urls","sandboxEnabled"}) public ScriptEngineFactory(String[] urls, boolean sandboxEnabled)
-
-
Method Details
-
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>
-
createInstance
- Specified by:
createInstance
in classorg.springframework.beans.factory.config.AbstractFactoryBean<groovy.util.GroovyScriptEngine>
- Throws:
Exception
-