org.springframework.aop.aspectj.annotation
Class AspectMetadata
java.lang.Object
org.springframework.aop.aspectj.annotation.AspectMetadata
public class AspectMetadata
- extends Object
Metadata for an AspectJ aspect class, with an additional Spring AOP pointcut
for the per clause.
Uses AspectJ 5 AJType reflection API, so is only supported on Java 5.
Enables us to work with different AspectJ instantiation models such as
"singleton", "pertarget" and "perthis".
- Since:
- 2.0
- Author:
- Rod Johnson
- See Also:
AspectJExpressionPointcut
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AspectMetadata
public AspectMetadata(Class<?> aspectClass,
String aspectName)
isPerThisOrPerTarget
public boolean isPerThisOrPerTarget()
isPerTypeWithin
public boolean isPerTypeWithin()
isLazilyInstantiated
public boolean isLazilyInstantiated()
getAjType
public org.aspectj.lang.reflect.AjType getAjType()
- Return AspectJ reflection information
- Returns:
- information from AspectJ about the aspect
getAspectClass
public Class<?> getAspectClass()
getAspectName
public String getAspectName()
getPerClausePointcut
public Pointcut getPerClausePointcut()
- Return a Spring pointcut expression for a singleton aspect
- Returns:
- Pointcut.TRUE if it's a singleton
Copyright © 2002-2006 The Spring Framework.