类 MethodLocatingFactoryBean
java.lang.Object
cn.taketoday.aop.config.MethodLocatingFactoryBean
- 所有已实现的接口:
Aware,BeanFactoryAware,FactoryBean<Method>
public class MethodLocatingFactoryBean
extends Object
implements FactoryBean<Method>, BeanFactoryAware
FactoryBean implementation that locates a Method on a specified bean.- 从以下版本开始:
- 4.0 2022/3/7 21:27
- 作者:
- Rob Harrop, Harry Yang
-
字段概要
从接口继承的字段 cn.taketoday.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanvoidsetBeanFactory(BeanFactory beanFactory) voidsetMethodName(String methodName) Set the name of theMethodto locate.voidsetTargetBeanName(String targetBeanName) Set the name of the bean to locate theMethodon.
-
构造器详细资料
-
MethodLocatingFactoryBean
public MethodLocatingFactoryBean()
-
-
方法详细资料
-
setTargetBeanName
Set the name of the bean to locate theMethodon.This property is required.
- 参数:
targetBeanName- the name of the bean to locate theMethodon
-
setMethodName
Set the name of theMethodto locate.This property is required.
- 参数:
methodName- the name of theMethodto locate
-
setBeanFactory
- 指定者:
setBeanFactory在接口中BeanFactoryAware
-
getObject
- 指定者:
getObject在接口中FactoryBean<Method>- 抛出:
Exception
-
getObjectType
- 指定者:
getObjectType在接口中FactoryBean<Method>
-
isSingleton
public boolean isSingleton()- 指定者:
isSingleton在接口中FactoryBean<Method>
-