public class BeanFactoryVariableValueFactory extends Object implements VariableValueFactory
| Constructor and Description |
|---|
BeanFactoryVariableValueFactory(Class type,
org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory)
Creates a new bean factory variable factory.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
createInitialValue(RequestContext context)
Creates the variable's initial value.
|
void |
restoreReferences(Object value,
RequestContext context)
Restore any references the variable's value needs to other objects.
|
String |
toString() |
public BeanFactoryVariableValueFactory(Class type, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory)
type - the variable classbeanFactory - the bean factory that will create and restore variable instances.public Object createInitialValue(RequestContext context)
VariableValueFactorycreateInitialValue in interface VariableValueFactorycontext - the currently executing flow requestpublic void restoreReferences(Object value, RequestContext context)
VariableValueFactoryrestoreReferences in interface VariableValueFactoryvalue - the current variable valuecontext - the currently executing flow request