public class SpelFunctionFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.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 org.springframework.beans.factory.BeanNameAwarepublic java.lang.String getFunctionName()
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic java.lang.reflect.Method getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>java.lang.Exceptionpublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>