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
-
Constructor Summary
Constructors Constructor Description SpelFunctionFactoryBean(java.lang.Class<?> functionClass, java.lang.String functionMethodSignature) -
Method Summary
Modifier and Type Method Description voidafterPropertiesSet()java.lang.StringgetFunctionName()java.lang.reflect.MethodgetObject()java.lang.Class<?>getObjectType()booleanisSingleton()voidsetBeanName(java.lang.String name)
-
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:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getFunctionName
public java.lang.String getFunctionName() -
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getObject
public java.lang.reflect.Method getObject()- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>
-
getObjectType
public java.lang.Class<?> getObjectType()- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>
-