Class IntegrationEvaluationContextFactoryBean
java.lang.Object
org.springframework.integration.config.AbstractEvaluationContextFactoryBean
org.springframework.integration.config.IntegrationEvaluationContextFactoryBean
- All Implemented Interfaces:
Aware
,FactoryBean<StandardEvaluationContext>
,InitializingBean
,ApplicationContextAware
public class IntegrationEvaluationContextFactoryBean extends AbstractEvaluationContextFactoryBean implements FactoryBean<StandardEvaluationContext>
FactoryBean
to populate StandardEvaluationContext
instances enhanced with:
-
a
BeanFactoryResolver
. -
a
TypeConverter
based on theConversionService
from the application context. -
a set of provided
PropertyAccessor
s including a defaultMapAccessor
. - a set of provided SpEL functions.
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.
- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IntegrationEvaluationContextFactoryBean()
-
Method Summary
Modifier and Type Method Description void
afterPropertiesSet()
StandardEvaluationContext
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
void
setTypeLocator(TypeLocator typeLocator)
Methods inherited from class org.springframework.integration.config.AbstractEvaluationContextFactoryBean
getApplicationContext, getFunctions, getPropertyAccessors, getTypeConverter, initialize, setApplicationContext, setFunctions, setPropertyAccessors
-
Constructor Details
-
IntegrationEvaluationContextFactoryBean
public IntegrationEvaluationContextFactoryBean()
-
-
Method Details
-
setTypeLocator
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceFactoryBean<StandardEvaluationContext>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<StandardEvaluationContext>
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<StandardEvaluationContext>
-