The Spring Framework

org.springframework.aop.aspectj.annotation
Class AspectMetadata

java.lang.Object
  extended by 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

Constructor Summary
AspectMetadata(Class<?> aspectClass, String aspectName)
           
 
Method Summary
 org.aspectj.lang.reflect.AjType getAjType()
          Return AspectJ reflection information
 Class<?> getAspectClass()
           
 String getAspectName()
           
 Pointcut getPerClausePointcut()
          Return a Spring pointcut expression for a singleton aspect
 boolean isLazilyInstantiated()
           
 boolean isPerThisOrPerTarget()
           
 boolean isPerTypeWithin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectMetadata

public AspectMetadata(Class<?> aspectClass,
                      String aspectName)
Method Detail

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

The Spring Framework

Copyright © 2002-2006 The Spring Framework.