程序包 infra.aop.config

类 SimpleBeanFactoryAwareAspectInstanceFactory

java.lang.Object
infra.aop.config.SimpleBeanFactoryAwareAspectInstanceFactory
所有已实现的接口:
AspectInstanceFactory, infra.beans.factory.Aware, infra.beans.factory.BeanFactoryAware, infra.core.Ordered

public class SimpleBeanFactoryAwareAspectInstanceFactory extends Object implements AspectInstanceFactory, infra.beans.factory.BeanFactoryAware
Implementation of AspectInstanceFactory that locates the aspect from the BeanFactory using a configured bean name.
从以下版本开始:
4.0
作者:
Rob Harrop, Juergen Hoeller
  • 字段详细资料

    • aspectBeanName

      @Nullable private String aspectBeanName
    • beanFactory

      @Nullable private infra.beans.factory.BeanFactory beanFactory
  • 构造器详细资料

    • SimpleBeanFactoryAwareAspectInstanceFactory

      public SimpleBeanFactoryAwareAspectInstanceFactory()
  • 方法详细资料

    • setAspectBeanName

      public void setAspectBeanName(String aspectBeanName)
      Set the name of the aspect bean. This is the bean that is returned when calling getAspectInstance().
    • setBeanFactory

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

      public Object getAspectInstance()
      Look up the aspect bean from the BeanFactory and returns it.
      指定者:
      getAspectInstance 在接口中 AspectInstanceFactory
      返回:
      the aspect instance (never null)
      另请参阅:
    • getAspectClassLoader

      @Nullable public ClassLoader getAspectClassLoader()
      从接口复制的说明: AspectInstanceFactory
      Expose the aspect class loader that this factory uses.
      指定者:
      getAspectClassLoader 在接口中 AspectInstanceFactory
      返回:
      the aspect class loader (or null for the bootstrap loader)
      另请参阅:
      • ClassUtils.getDefaultClassLoader()
    • getOrder

      public int getOrder()
      指定者:
      getOrder 在接口中 infra.core.Ordered