public class SpelFunctionFactoryBean extends Object implements FactoryBean<Method>, InitializingBean, BeanNameAware
FactoryBean implementation to encapsulate the population of a static Method
from the provided functionClass and functionMethodSignature as
a valid StandardEvaluationContext function.StandardEvaluationContext.registerFunction(java.lang.String, java.lang.reflect.Method),
BeanUtils.resolveSignature(java.lang.String, java.lang.Class<?>)OBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
SpelFunctionFactoryBean(Class<?> functionClass,
String functionMethodSignature) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getFunctionName() |
Method |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanName(String name) |
public void setBeanName(String name)
setBeanName in interface BeanNameAwarepublic String getFunctionName()
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic Method getObject()
getObject in interface FactoryBean<Method>public Class<?> getObjectType()
getObjectType in interface FactoryBean<Method>public boolean isSingleton()
isSingleton in interface FactoryBean<Method>