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 void
afterPropertiesSet()
String
getFunctionName()
Method
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
void
setBeanName(String name)
-
Constructor Details
-
Method Details
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
getFunctionName
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<Method>
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<Method>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceFactoryBean<Method>
-