org.jbpm.pvm.internal.svc
Class EnvironmentInterceptor
java.lang.Object
org.jbpm.pvm.internal.svc.Interceptor
org.jbpm.pvm.internal.svc.EnvironmentInterceptor
- All Implemented Interfaces:
- CommandService
public class EnvironmentInterceptor
- extends Interceptor
sets up an environment around the execution of the command.
- Author:
- Tom Baeyens
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
environmentFactory
protected EnvironmentFactory environmentFactory
policy
protected Policy policy
EnvironmentInterceptor
public EnvironmentInterceptor()
execute
public <T> T execute(Command<T> command)
executeInExistingEnvironment
protected <T> T executeInExistingEnvironment(Command<T> command)
executeInNewEnvironment
protected <T> T executeInNewEnvironment(Command<T> command)
isEnvironmentCreationNecessary
protected boolean isEnvironmentCreationNecessary()
getEnvironmentFactory
public EnvironmentFactory getEnvironmentFactory()
setEnvironmentFactory
public void setEnvironmentFactory(EnvironmentFactory environmentFactory)
getPolicy
public Policy getPolicy()
setPolicy
public void setPolicy(Policy policy)
Copyright © 2010 JBoss Community. All Rights Reserved.