public class IntegrationEvaluationContextFactoryBean extends java.lang.Object implements FactoryBean<StandardEvaluationContext>, ApplicationContextAware, InitializingBean
FactoryBean
to populate StandardEvaluationContext
instances enhanced with:
BeanFactoryResolver
.
TypeConverter
based on the ConversionService
from the application context.
PropertyAccessor
s including a default MapAccessor
.
After initialization this factory populates functions and property accessors from
SpelFunctionFactoryBean
s and SpelPropertyAccessorRegistrar
, respectively.
Functions and property accessors are also inherited from any parent context.
This factory returns a new instance for each reference - isSingleton()
returns false.
Constructor and Description |
---|
IntegrationEvaluationContextFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
StandardEvaluationContext |
getObject() |
java.lang.Class<?> |
getObjectType() |
java.util.Map<java.lang.String,PropertyAccessor> |
getPropertyAccessors() |
boolean |
isSingleton() |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setFunctions(java.util.Map<java.lang.String,java.lang.reflect.Method> functionsArg) |
void |
setPropertyAccessors(java.util.Map<java.lang.String,PropertyAccessor> accessors) |
void |
setTypeLocator(TypeLocator typeLocator) |
public IntegrationEvaluationContextFactoryBean()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void setPropertyAccessors(java.util.Map<java.lang.String,PropertyAccessor> accessors)
public java.util.Map<java.lang.String,PropertyAccessor> getPropertyAccessors()
public void setFunctions(java.util.Map<java.lang.String,java.lang.reflect.Method> functionsArg)
public void setTypeLocator(TypeLocator typeLocator)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface InitializingBean
java.lang.Exception
public StandardEvaluationContext getObject() throws java.lang.Exception
getObject
in interface FactoryBean<StandardEvaluationContext>
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface FactoryBean<StandardEvaluationContext>
public boolean isSingleton()
isSingleton
in interface FactoryBean<StandardEvaluationContext>