Class IntegrationSimpleEvaluationContextFactoryBean

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

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

FactoryBean to populate SimpleEvaluationContext instances enhanced with:

  • 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:
4.3.15
  • Constructor Details

  • Method Details

    • isSingleton

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

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

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

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