spring-aop

org.springframework.aop.config
Class MethodLocatingFactoryBean

java.lang.Object
  extended by org.springframework.aop.config.MethodLocatingFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>

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.

Since:
2.0
Author:
Rob Harrop

Constructor Summary
MethodLocatingFactoryBean()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodLocatingFactoryBean

public MethodLocatingFactoryBean()
Method Detail

setTargetBeanName

public void setTargetBeanName(java.lang.String targetBeanName)
Set the name of the bean to locate the Method on.

This property is required.

Parameters:
targetBeanName - the name of the bean to locate the Method on

setMethodName

public void setMethodName(java.lang.String methodName)
Set the name of the Method to locate.

This property is required.

Parameters:
methodName - the name of the Method to locate

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware

getObject

public java.lang.reflect.Method getObject()
                                   throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<java.lang.reflect.Method> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<java.lang.reflect.Method>

spring-aop