org.springframework.integration.config
Class IntegrationEvaluationContextFactoryBean
java.lang.Object
org.springframework.integration.config.IntegrationEvaluationContextFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>, org.springframework.beans.factory.InitializingBean
public class IntegrationEvaluationContextFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
FactoryBean
to populate StandardEvaluationContext
instances enhanced with:
-
a
BeanFactoryResolver
.
-
a
TypeConverter
based on the ConversionService
from the application context.
-
a set of provided
PropertyAccessor
s including a default MapAccessor
.
-
a set of provided SpEL functions.
This factory returns a new instance for each reference singleton - isSingleton()
returns false.
- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegrationEvaluationContextFactoryBean
public IntegrationEvaluationContextFactoryBean()
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
setPropertyAccessors
public void setPropertyAccessors(org.springframework.expression.PropertyAccessor... accessors)
setFunctions
public void setFunctions(java.util.Map<java.lang.String,java.lang.reflect.Method> functionsArg)
addFunction
public void addFunction(java.lang.String name,
java.lang.reflect.Method method)
addFunctions
public void addFunctions(java.util.Map<java.lang.String,java.lang.reflect.Method> functions)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
getObject
public org.springframework.expression.spel.support.StandardEvaluationContext getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>