Class SandboxInterceptorFactory
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>
org.craftercms.commons.spring.groovy.SandboxInterceptorFactory
- 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<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>
,org.springframework.beans.factory.InitializingBean
public class SandboxInterceptorFactory
extends org.springframework.beans.factory.config.AbstractFactoryBean<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>
Implementation of
FactoryBean
for SandboxInterceptor
- Since:
- 3.1.12
- Author:
- joseross
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.core.io.Resource
Resource containing the restrictionsprotected final boolean
Indicates if the blacklist should be enabledprotected boolean
Indicates if the sandbox should be enabledFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionSandboxInterceptorFactory
(boolean sandboxEnabled, boolean blacklistEnabled, org.springframework.core.io.Resource blacklist) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor
Class<?>
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
sandboxEnabled
protected boolean sandboxEnabledIndicates if the sandbox should be enabled -
blacklistEnabled
protected final boolean blacklistEnabledIndicates if the blacklist should be enabled -
blacklist
protected org.springframework.core.io.Resource blacklistResource containing the restrictions
-
-
Constructor Details
-
SandboxInterceptorFactory
@ConstructorProperties({"sandboxEnabled","blacklistEnabled","blacklist"}) public SandboxInterceptorFactory(boolean sandboxEnabled, boolean blacklistEnabled, org.springframework.core.io.Resource blacklist)
-
-
Method Details
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>
-
createInstance
protected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor createInstance() throws Exception- Specified by:
createInstance
in classorg.springframework.beans.factory.config.AbstractFactoryBean<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>
- Throws:
Exception
-