|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aspectj.lang.Aspects14
public class Aspects14
For users working on a level of Java prior to Java5, Aspects14 handles generic aspectOf methods when they are not available in the aspects but added later on through load time weaving. Users on Java5 should use the class Aspects instead.
Aspects14.aspectOf(..) is doing reflective calls to the aspect aspectOf, so for better performance consider using ajc compilation of the aspects and using them as a binary dependancies in your project.
Constructor Summary | |
---|---|
Aspects14()
|
Method Summary | |
---|---|
static java.lang.Object |
aspectOf(java.lang.Class aspectClass)
Returns the singleton aspect or the percflow / percflowbelow associated with the current thread |
static java.lang.Object |
aspectOf(java.lang.Class aspectClass,
java.lang.Class perTypeWithin)
Returns the pertypewithin aspect |
static java.lang.Object |
aspectOf(java.lang.Class aspectClass,
java.lang.Object perObject)
Returns the perthis / pertarget aspect |
static boolean |
hasAspect(java.lang.Class aspectClass)
Returns true if singleton aspect or percflow / percflowbelow aspect is bound |
static boolean |
hasAspect(java.lang.Class aspectClass,
java.lang.Class perTypeWithin)
Returns true if the pertypewithin aspect is bound |
static boolean |
hasAspect(java.lang.Class aspectClass,
java.lang.Object perObject)
Returns true if the perthis / pertarget aspect is bound |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Aspects14()
Method Detail |
---|
public static java.lang.Object aspectOf(java.lang.Class aspectClass) throws NoAspectBoundException
aspectClass
-
NoAspectBoundException
- if no such aspectpublic static java.lang.Object aspectOf(java.lang.Class aspectClass, java.lang.Object perObject) throws NoAspectBoundException
aspectClass
- perObject
-
NoAspectBoundException
- if no such aspect, or no aspect boundpublic static java.lang.Object aspectOf(java.lang.Class aspectClass, java.lang.Class perTypeWithin) throws NoAspectBoundException
aspectClass
- perTypeWithin
- class
NoAspectBoundException
- if no such aspect, or no aspect boundpublic static boolean hasAspect(java.lang.Class aspectClass) throws NoAspectBoundException
aspectClass
-
NoAspectBoundException
- if not boundpublic static boolean hasAspect(java.lang.Class aspectClass, java.lang.Object perObject) throws NoAspectBoundException
aspectClass
- perObject
-
NoAspectBoundException
- if not boundpublic static boolean hasAspect(java.lang.Class aspectClass, java.lang.Class perTypeWithin) throws NoAspectBoundException
aspectClass
- perTypeWithin
- class
NoAspectBoundException
- if not bound
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |