程序包 infra.aop.config

类 MethodLocatingFactoryBean

java.lang.Object
infra.aop.config.MethodLocatingFactoryBean
所有已实现的接口:
infra.beans.factory.Aware, infra.beans.factory.BeanFactoryAware, infra.beans.factory.FactoryBean<Method>

public class MethodLocatingFactoryBean extends Object implements infra.beans.factory.FactoryBean<Method>, infra.beans.factory.BeanFactoryAware
FactoryBean implementation that locates a Method on a specified bean.
从以下版本开始:
4.0 2022/3/7 21:27
作者:
Rob Harrop, Harry Yang
  • 字段详细资料

    • targetBeanName

      @Nullable private String targetBeanName
    • methodName

      @Nullable private String methodName
    • method

      @Nullable private Method method
  • 构造器详细资料

    • MethodLocatingFactoryBean

      public MethodLocatingFactoryBean()
  • 方法详细资料

    • setTargetBeanName

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

      This property is required.

      参数:
      targetBeanName - the name of the bean to locate the Method on
    • setMethodName

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

      This property is required.

      参数:
      methodName - the name of the Method to locate
    • setBeanFactory

      public void setBeanFactory(infra.beans.factory.BeanFactory beanFactory)
      指定者:
      setBeanFactory 在接口中 infra.beans.factory.BeanFactoryAware
    • getObject

      @Nullable public Method getObject() throws Exception
      指定者:
      getObject 在接口中 infra.beans.factory.FactoryBean<Method>
      抛出:
      Exception
    • getObjectType

      public Class<Method> getObjectType()
      指定者:
      getObjectType 在接口中 infra.beans.factory.FactoryBean<Method>
    • isSingleton

      public boolean isSingleton()
      指定者:
      isSingleton 在接口中 infra.beans.factory.FactoryBean<Method>