public class SpelFunctionFactoryBean extends java.lang.Object implements FactoryBean<java.lang.reflect.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(java.lang.Class<?> functionClass,
java.lang.String functionMethodSignature) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.lang.String |
getFunctionName() |
java.lang.reflect.Method |
getObject() |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanName(java.lang.String name) |
public SpelFunctionFactoryBean(java.lang.Class<?> functionClass, java.lang.String functionMethodSignature)
public void setBeanName(java.lang.String name)
setBeanName
in interface BeanNameAware
public java.lang.String getFunctionName()
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface InitializingBean
java.lang.Exception
public java.lang.reflect.Method getObject() throws java.lang.Exception
getObject
in interface FactoryBean<java.lang.reflect.Method>
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface FactoryBean<java.lang.reflect.Method>
public boolean isSingleton()
isSingleton
in interface FactoryBean<java.lang.reflect.Method>