public class MethodLocatingFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>, org.springframework.beans.factory.BeanFactoryAware
FactoryBean
implementation that locates a Method
on a specified bean.Constructor and Description |
---|
MethodLocatingFactoryBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getObject() |
java.lang.Class<java.lang.reflect.Method> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setMethodName(java.lang.String methodName)
Set the name of the
Method to locate. |
void |
setTargetBeanName(java.lang.String targetBeanName)
Set the name of the bean to locate the
Method on. |
public void setTargetBeanName(java.lang.String targetBeanName)
Method
on.
This property is required.
targetBeanName
- the name of the bean to locate the Method
onpublic void setMethodName(java.lang.String methodName)
Method
to locate.
This property is required.
methodName
- the name of the Method
to locatepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
@Nullable public java.lang.reflect.Method getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>
java.lang.Exception
public java.lang.Class<java.lang.reflect.Method> 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>