|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.aspectj.annotation.AspectMetadata
public class AspectMetadata
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".
AspectJExpressionPointcut
Constructor Summary | |
---|---|
AspectMetadata(Class<?> aspectClass,
String aspectName)
Create a new AspectMetadata instance for the given aspect class. |
Method Summary | |
---|---|
org.aspectj.lang.reflect.AjType |
getAjType()
Return AspectJ reflection information. |
Class |
getAspectClass()
Return the aspect class. |
String |
getAspectName()
Return the aspect class. |
Pointcut |
getPerClausePointcut()
Return a Spring pointcut expression for a singleton aspect. |
boolean |
isLazilyInstantiated()
Return whether the aspect needs to be lazily instantiated. |
boolean |
isPerThisOrPerTarget()
Return whether the aspect is defined as "perthis" or "pertarget". |
boolean |
isPerTypeWithin()
Return whether the aspect is defined as "pertypewithin". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AspectMetadata(Class<?> aspectClass, String aspectName)
aspectClass
- the aspect classaspectName
- the name of the aspectMethod Detail |
---|
public org.aspectj.lang.reflect.AjType getAjType()
public Class getAspectClass()
public String getAspectName()
public Pointcut getPerClausePointcut()
Pointcut.TRUE
if it's a singleton).
public boolean isPerThisOrPerTarget()
public boolean isPerTypeWithin()
public boolean isLazilyInstantiated()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |