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
FieldsModifier and TypeFieldDescriptionprotected booleanIndicates if the sandbox should be enabledprotected String[]List of relative paths to load scriptsFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
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:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<groovy.util.GroovyScriptEngine>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<groovy.util.GroovyScriptEngine>
-
createInstance
- Specified by:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<groovy.util.GroovyScriptEngine>- Throws:
Exception
-