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 ofFactoryBeanforSandboxInterceptor- Since:
- 3.1.12
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.core.io.ResourceblacklistResource containing the restrictionsprotected booleanblacklistEnabledIndicates if the blacklist should be enabledprotected booleansandboxEnabledIndicates if the sandbox should be enabled
-
Constructor Summary
Constructors Constructor Description SandboxInterceptorFactory(boolean sandboxEnabled, boolean blacklistEnabled, org.springframework.core.io.Resource blacklist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorcreateInstance()Class<?>getObjectType()
-
-
-
Field Detail
-
sandboxEnabled
protected boolean sandboxEnabled
Indicates if the sandbox should be enabled
-
blacklistEnabled
protected final boolean blacklistEnabled
Indicates if the blacklist should be enabled
-
blacklist
protected org.springframework.core.io.Resource blacklist
Resource containing the restrictions
-
-
Constructor Detail
-
SandboxInterceptorFactory
@ConstructorProperties({"sandboxEnabled","blacklistEnabled","blacklist"}) public SandboxInterceptorFactory(boolean sandboxEnabled, boolean blacklistEnabled, org.springframework.core.io.Resource blacklist)
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>- Specified by:
getObjectTypein 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:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor>- Throws:
Exception
-
-