public class ProcessScope extends Object implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.DisposableBean
ProcessInstance
).
Parts of this code are lifted wholesale from Dave Syer's work on the Spring 3.1 RefreshScope.Modifier and Type | Field and Description |
---|---|
static String |
PROCESS_SCOPE_NAME |
static String |
PROCESS_SCOPE_PROCESS_VARIABLES_SINGLETON
Map of the processVariables.
|
Constructor and Description |
---|
ProcessScope() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Object |
get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
String |
getConversationId() |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
registerDestructionCallback(String name,
Runnable callback) |
Object |
remove(String name) |
Object |
resolveContextualObject(String key) |
void |
setProcessEngine(ProcessEngine processEngine) |
public static final String PROCESS_SCOPE_PROCESS_VARIABLES_SINGLETON
public static final String PROCESS_SCOPE_NAME
public void setProcessEngine(ProcessEngine processEngine)
public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get
in interface org.springframework.beans.factory.config.Scope
public void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback
in interface org.springframework.beans.factory.config.Scope
public Object remove(String name)
remove
in interface org.springframework.beans.factory.config.Scope
public Object resolveContextualObject(String key)
resolveContextualObject
in interface org.springframework.beans.factory.config.Scope
public String getConversationId()
getConversationId
in interface org.springframework.beans.factory.config.Scope
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
Copyright © 2017. All rights reserved.