public class IntegrationEvaluationContextFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
FactoryBean to populate StandardEvaluationContext instances enhanced with:
BeanFactoryResolver.
TypeConverter based on the ConversionService from the application context.
PropertyAccessors including a default MapAccessor.
After initialization this factory populates functions and property accessors from
SpelFunctionFactoryBeans 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() |
Map<String,Method> |
getFunctions() |
org.springframework.expression.spel.support.StandardEvaluationContext |
getObject() |
Class<?> |
getObjectType() |
Map<String,org.springframework.expression.PropertyAccessor> |
getPropertyAccessors() |
boolean |
isSingleton() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setFunctions(Map<String,Method> functionsArg) |
void |
setPropertyAccessors(Map<String,org.springframework.expression.PropertyAccessor> accessors) |
void |
setTypeLocator(org.springframework.expression.TypeLocator typeLocator) |
public IntegrationEvaluationContextFactoryBean()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setPropertyAccessors(Map<String,org.springframework.expression.PropertyAccessor> accessors)
public Map<String,org.springframework.expression.PropertyAccessor> getPropertyAccessors()
public void setTypeLocator(org.springframework.expression.TypeLocator typeLocator)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic org.springframework.expression.spel.support.StandardEvaluationContext getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>