类 AspectMetadata
java.lang.Object
cn.taketoday.aop.aspectj.annotation.AspectMetadata
- 所有已实现的接口:
Serializable
Metadata for an AspectJ aspect class, with an additional Framework AOP pointcut
for the per clause.
Uses AspectJ 5 AJType reflection API, enabling us to work with different AspectJ instantiation models such as "singleton", "pertarget" and "perthis".
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
-
构造器概要
构造器构造器说明AspectMetadata(Class<?> aspectClass, String aspectName) Create a new AspectMetadata instance for the given aspect class. -
方法概要
修饰符和类型方法说明org.aspectj.lang.reflect.AjType<?>Return AspectJ reflection information.Class<?>Return the aspect class.Return the aspect name.Return a Framework pointcut expression for a singleton aspect.booleanReturn whether the aspect needs to be lazily instantiated.booleanReturn whether the aspect is defined as "perthis" or "pertarget".booleanReturn whether the aspect is defined as "pertypewithin".
-
构造器详细资料
-
AspectMetadata
Create a new AspectMetadata instance for the given aspect class.- 参数:
aspectClass- the aspect classaspectName- the name of the aspect
-
-
方法详细资料
-
getAjType
public org.aspectj.lang.reflect.AjType<?> getAjType()Return AspectJ reflection information. -
getAspectClass
Return the aspect class. -
getAspectName
Return the aspect name. -
getPerClausePointcut
Return a Framework pointcut expression for a singleton aspect. (e.g.Pointcut.TRUEif it's a singleton). -
isPerThisOrPerTarget
public boolean isPerThisOrPerTarget()Return whether the aspect is defined as "perthis" or "pertarget". -
isPerTypeWithin
public boolean isPerTypeWithin()Return whether the aspect is defined as "pertypewithin". -
isLazilyInstantiated
public boolean isLazilyInstantiated()Return whether the aspect needs to be lazily instantiated.
-