Class IntegrationEvaluationContextFactoryBean

java.lang.Object
org.springframework.integration.config.AbstractEvaluationContextFactoryBean
org.springframework.integration.config.IntegrationEvaluationContextFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class IntegrationEvaluationContextFactoryBean
extends AbstractEvaluationContextFactoryBean
implements org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>

FactoryBean to populate StandardEvaluationContext instances enhanced with:

  • a BeanFactoryResolver.
  • a TypeConverter based on the ConversionService from the application context.
  • a set of provided PropertyAccessors including a default MapAccessor.
  • a set of provided SpEL functions.

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.

Since:
3.0
  • Constructor Details

  • Method Details

    • setTypeLocator

      public void setTypeLocator​(org.springframework.expression.TypeLocator typeLocator)
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getObject

      public org.springframework.expression.spel.support.StandardEvaluationContext getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>
    • getObjectType

      public java.lang.Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.expression.spel.support.StandardEvaluationContext>