Class AspectMetadata
java.lang.Object
org.springframework.aop.aspectj.annotation.AspectMetadata
- All Implemented Interfaces:
- Serializable
Metadata for an AspectJ aspect class, with an additional Spring 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".
- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAspectMetadata(Class<?> aspectClass, String aspectName) Create a new AspectMetadata instance for the given aspect class.
- 
Method SummaryModifier and TypeMethodDescriptionorg.aspectj.lang.reflect.AjType<?>Return AspectJ reflection information.Class<?>Return the aspect class.Return the aspect name.Return a Spring 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".
- 
Constructor Details- 
AspectMetadataCreate a new AspectMetadata instance for the given aspect class.- Parameters:
- aspectClass- the aspect class
- aspectName- the name of the aspect
 
 
- 
- 
Method Details- 
getAjTypepublic org.aspectj.lang.reflect.AjType<?> getAjType()Return AspectJ reflection information.
- 
getAspectClassReturn the aspect class.
- 
getAspectNameReturn the aspect name.
- 
getPerClausePointcutReturn a Spring pointcut expression for a singleton aspect. (for example,Pointcut.TRUEif it's a singleton).
- 
isPerThisOrPerTargetpublic boolean isPerThisOrPerTarget()Return whether the aspect is defined as "perthis" or "pertarget".
- 
isPerTypeWithinpublic boolean isPerTypeWithin()Return whether the aspect is defined as "pertypewithin".
- 
isLazilyInstantiatedpublic boolean isLazilyInstantiated()Return whether the aspect needs to be lazily instantiated.
 
-