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
- See Also:
- Constant Field Values
-
PROCESS_SCOPE_NAME
public static final String PROCESS_SCOPE_NAME
- See Also:
- Constant Field Values
-
Method Detail
-
setProcessEngine
public void setProcessEngine(ProcessEngine processEngine)
-
get
public Object get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory)
- Specified by:
get
in interface org.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(String name,
Runnable callback)
- Specified by:
registerDestructionCallback
in interface org.springframework.beans.factory.config.Scope
-
remove
public Object remove(String name)
- Specified by:
remove
in interface org.springframework.beans.factory.config.Scope
-
resolveContextualObject
public Object resolveContextualObject(String key)
- Specified by:
resolveContextualObject
in interface org.springframework.beans.factory.config.Scope
-
getConversationId
public String getConversationId()
- Specified by:
getConversationId
in interface org.springframework.beans.factory.config.Scope
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
- Specified by:
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
org.springframework.beans.BeansException
-
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
Copyright © 2022. All rights reserved.