org.springframework.aop.config

## 类 SimpleBeanFactoryAwareAspectInstanceFactory

- java.lang.Object
- - org.springframework.aop.config.SimpleBeanFactoryAwareAspectInstanceFactory

- 所有已实现的接口:
    AspectInstanceFactory, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.core.Ordered

      public class SimpleBeanFactoryAwareAspectInstanceFactory
      extends Object
      implements AspectInstanceFactory, org.springframework.beans.factory.BeanFactoryAware

  Implementation of `AspectInstanceFactory` that locates the aspect from the `BeanFactory` using a configured bean name.
  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller

- - ### 字段概要

    - ### 从接口继承的字段 org.springframework.core.Ordered

      `HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE`

  - ### 构造器概要

    构造器
    构造器和说明
    `SimpleBeanFactoryAwareAspectInstanceFactory()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ClassLoader` | `getAspectClassLoader()` Expose the aspect class loader that this factory uses.
    `Object` | `getAspectInstance()` Look up the aspect bean from the `BeanFactory` and returns it.
    `int` | `getOrder()`
    `void` | `setAspectBeanName(String aspectBeanName)` Set the name of the aspect bean.
    `void` | `setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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(org.springframework.beans.factory.BeanFactory beanFactory)

      指定者:
        `setBeanFactory` 在接口中 `org.springframework.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`)
      另请参阅:
        `setAspectBeanName(java.lang.String)`

    - #### 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` 在接口中 `org.springframework.core.Ordered`