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<?>)
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 BeanNameAware
public String getFunctionName()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public Method getObject() throws Exception
getObject
in interface FactoryBean<Method>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<Method>
public boolean isSingleton()
isSingleton
in interface FactoryBean<Method>