public class Aspects14
extends java.lang.Object
Constructor and Description |
---|
Aspects14() |
Modifier and Type | Method and Description |
---|---|
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
|
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
- classNoAspectBoundException
- 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
- classNoAspectBoundException
- if not bound