public class IntegrationEvaluationContextFactoryBean
extends java.lang.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.
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() |
org.springframework.expression.spel.support.StandardEvaluationContext |
getObject() |
java.lang.Class<?> |
getObjectType() |
java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor> |
getPropertyAccessors() |
boolean |
isSingleton() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setFunctions(java.util.Map<java.lang.String,java.lang.reflect.Method> functionsArg) |
void |
setPropertyAccessors(java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor> accessors) |
public IntegrationEvaluationContextFactoryBean()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setPropertyAccessors(java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor> accessors)
public java.util.Map<java.lang.String,org.springframework.expression.PropertyAccessor> getPropertyAccessors()
public void setFunctions(java.util.Map<java.lang.String,java.lang.reflect.Method> functionsArg)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public org.springframework.expression.spel.support.StandardEvaluationContext getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>
java.lang.Exception
public java.lang.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>