Class SpelFunctionFactoryBean

java.lang.Object
org.springframework.integration.config.SpelFunctionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.FactoryBean<Method>, org.springframework.beans.factory.InitializingBean

public class SpelFunctionFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<Method>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware
A FactoryBean implementation to encapsulate the population of a static Method from the provided functionClass and functionMethodSignature as a valid StandardEvaluationContext function.
Since:
3.0
See Also:
  • StandardEvaluationContext.registerFunction(java.lang.String, java.lang.reflect.Method)
  • BeanUtils.resolveSignature(java.lang.String, java.lang.Class<?>)
  • Constructor Details

    • SpelFunctionFactoryBean

      public SpelFunctionFactoryBean(Class<?> functionClass, String functionMethodSignature)
  • Method Details

    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • getFunctionName

      public String getFunctionName()
    • afterPropertiesSet

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

      public Method getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<Method>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<Method>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<Method>