Package org.springframework.aop.config
Class MethodLocatingFactoryBean
java.lang.Object
org.springframework.aop.config.MethodLocatingFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<Method>
public class MethodLocatingFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<Method>, org.springframework.beans.factory.BeanFactoryAware
FactoryBean
implementation that locates a Method
on a specified bean.- Since:
- 2.0
- Author:
- Rob Harrop
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setMethodName
(String methodName) Set the name of theMethod
to locate.void
setTargetBeanName
(String targetBeanName) Set the name of the bean to locate theMethod
on.
-
Constructor Details
-
MethodLocatingFactoryBean
public MethodLocatingFactoryBean()
-
-
Method Details
-
setTargetBeanName
Set the name of the bean to locate theMethod
on.This property is required.
- Parameters:
targetBeanName
- the name of the bean to locate theMethod
on
-
setMethodName
Set the name of theMethod
to locate.This property is required.
- Parameters:
methodName
- the name of theMethod
to locate
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
-
getObject
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<Method>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<Method>
-