org.springframework.aop.aspectj.annotation

## 类 SimpleMetadataAwareAspectInstanceFactory

- java.lang.Object
- - org.springframework.aop.aspectj.SimpleAspectInstanceFactory
  - - org.springframework.aop.aspectj.annotation.SimpleMetadataAwareAspectInstanceFactory

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

      public class SimpleMetadataAwareAspectInstanceFactory
      extends SimpleAspectInstanceFactory
      implements MetadataAwareAspectInstanceFactory

  Implementation of `MetadataAwareAspectInstanceFactory` that creates a new instance of the specified aspect class for every `SimpleAspectInstanceFactory.getAspectInstance()` call.
  从以下版本开始:
    2.0.4
  作者:
    Juergen Hoeller

- - ### 字段概要

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

      `HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE`

  - ### 构造器概要

    构造器
    构造器和说明
    `SimpleMetadataAwareAspectInstanceFactory(Class<?> aspectClass, String aspectName)` Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `getAspectCreationMutex()` Return the best possible creation mutex for this factory.
    `AspectMetadata` | `getAspectMetadata()` Return the AspectJ AspectMetadata for this factory's aspect.
    `protected int` | `getOrderForAspectClass(Class<?> aspectClass)` Determine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing the `Ordered` interface.

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

      `getAspectClass, getAspectClassLoader, getAspectInstance, getOrder`

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

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

    - ### 从接口继承的方法 org.springframework.aop.aspectj.AspectInstanceFactory

      `getAspectClassLoader, getAspectInstance`

    - ### 从接口继承的方法 org.springframework.core.Ordered

      `getOrder`

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

    - #### SimpleMetadataAwareAspectInstanceFactory

          public SimpleMetadataAwareAspectInstanceFactory(Class<?> aspectClass,
                                                          String aspectName)

      Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.
      参数:
        `aspectClass` - the aspect class
        `aspectName` - the aspect name

  - ### 方法详细资料

    - #### getAspectMetadata

          public final AspectMetadata getAspectMetadata()

      从接口复制的说明: `MetadataAwareAspectInstanceFactory`
      Return the AspectJ AspectMetadata for this factory's aspect.
      指定者:
        `getAspectMetadata` 在接口中 `MetadataAwareAspectInstanceFactory`
      返回:
        the aspect metadata

    - #### getAspectCreationMutex

          public Object getAspectCreationMutex()

      从接口复制的说明: `MetadataAwareAspectInstanceFactory`
      Return the best possible creation mutex for this factory.
      指定者:
        `getAspectCreationMutex` 在接口中 `MetadataAwareAspectInstanceFactory`
      返回:
        the mutex object (may be `null` for no mutex to use)

    - #### getOrderForAspectClass

          protected int getOrderForAspectClass(Class<?> aspectClass)

      从类复制的说明: `SimpleAspectInstanceFactory`
      Determine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing the `Ordered` interface.

      The default implementation simply returns `Ordered.LOWEST_PRECEDENCE`.

      覆盖:
        `getOrderForAspectClass` 在类中 `SimpleAspectInstanceFactory`
      参数:
        `aspectClass` - the aspect class