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<java.lang.reflect.Method>, org.springframework.beans.factory.InitializingBean

public class SpelFunctionFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<java.lang.reflect.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<?>)
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors 
    Constructor Description
    SpelFunctionFactoryBean​(java.lang.Class<?> functionClass, java.lang.String functionMethodSignature)  
  • Method Summary

    Modifier and Type Method Description
    void afterPropertiesSet()  
    java.lang.String getFunctionName()  
    java.lang.reflect.Method getObject()  
    java.lang.Class<?> getObjectType()  
    boolean isSingleton()  
    void setBeanName​(java.lang.String name)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpelFunctionFactoryBean

      public SpelFunctionFactoryBean​(java.lang.Class<?> functionClass, java.lang.String functionMethodSignature)
  • Method Details

    • setBeanName

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

      public java.lang.String getFunctionName()
    • afterPropertiesSet

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

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

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

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