类 SimpleAspectInstanceFactory

java.lang.Object
cn.taketoday.aop.aspectj.SimpleAspectInstanceFactory
所有已实现的接口:
AspectInstanceFactory, Ordered
直接已知子类:
SimpleMetadataAwareAspectInstanceFactory

public class SimpleAspectInstanceFactory extends Object implements AspectInstanceFactory
Implementation of AspectInstanceFactory that creates a new instance of the specified aspect class for every getAspectInstance() call.
从以下版本开始:
4.0
作者:
Juergen Hoeller
  • 构造器详细资料

    • SimpleAspectInstanceFactory

      public SimpleAspectInstanceFactory(Class<?> aspectClass)
      Create a new SimpleAspectInstanceFactory for the given aspect class.
      参数:
      aspectClass - the aspect class
  • 方法详细资料

    • getAspectClass

      public final Class<?> getAspectClass()
      Return the specified aspect class (never null).
    • getAspectInstance

      public final Object getAspectInstance()
      从接口复制的说明: AspectInstanceFactory
      Create an instance of this factory's aspect.
      指定者:
      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)
      另请参阅:
    • getOrder

      public int getOrder()
      Determine the order for this factory's aspect instance, either an instance-specific order expressed through implementing the Ordered interface, or a fallback order.
      指定者:
      getOrder 在接口中 Ordered
      另请参阅:
    • getOrderForAspectClass

      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.

      The default implementation simply returns Ordered.LOWEST_PRECEDENCE.

      参数:
      aspectClass - the aspect class