org.springframework.aop.aspectj.annotation

## 类 PrototypeAspectInstanceFactory

- java.lang.Object
- - org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory
  - - org.springframework.aop.aspectj.annotation.PrototypeAspectInstanceFactory

- 所有已实现的接口:
    Serializable, MetadataAwareAspectInstanceFactory, AspectInstanceFactory, org.springframework.core.Ordered

      public class PrototypeAspectInstanceFactory
      extends BeanFactoryAspectInstanceFactory
      implements Serializable

  `AspectInstanceFactory` backed by a `BeanFactory`-provided prototype, enforcing prototype semantics.

  Note that this may instantiate multiple times, which probably won't give the semantics you expect. Use a `LazySingletonAspectInstanceFactoryDecorator` to wrap this to ensure only one new aspect comes back.

  从以下版本开始:
    2.0
  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    `BeanFactory`, `LazySingletonAspectInstanceFactoryDecorator`, 序列化表格

- - ### 字段概要

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

      `HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE`

  - ### 构造器概要

    构造器
    构造器和说明
    `PrototypeAspectInstanceFactory(org.springframework.beans.factory.BeanFactory beanFactory, String name)` Create a PrototypeAspectInstanceFactory.

  - ### 方法概要

    - ### 从类继承的方法 org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory

      `getAspectClassLoader, getAspectCreationMutex, getAspectInstance, getAspectMetadata, getOrder, toString`

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

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

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

    - #### PrototypeAspectInstanceFactory

          public PrototypeAspectInstanceFactory(org.springframework.beans.factory.BeanFactory beanFactory,
                                                String name)

      Create a PrototypeAspectInstanceFactory. AspectJ will be called to introspect to create AJType metadata using the type returned for the given bean name from the BeanFactory.
      参数:
        `beanFactory` - the BeanFactory to obtain instance(s) from
        `name` - the name of the bean