Class SpelFunctionFactoryBean
java.lang.Object
org.springframework.integration.config.SpelFunctionFactoryBean
- All Implemented Interfaces:
Aware,BeanNameAware,FactoryBean<Method>,InitializingBean
public class SpelFunctionFactoryBean extends Object implements FactoryBean<Method>, InitializingBean, 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
- Author:
- Artem Bilan
- 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(Class<?> functionClass, String functionMethodSignature) -
Method Summary
Modifier and Type Method Description voidafterPropertiesSet()StringgetFunctionName()MethodgetObject()Class<?>getObjectType()booleanisSingleton()voidsetBeanName(String name)
-
Constructor Details
-
Method Details
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
getFunctionName
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<Method>
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<Method>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceFactoryBean<Method>
-