|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.aspect.management.AspectRegistry
Stores the aspects, advices, pointcuts etc. Manages the method, advice and aspect indexing.
Constructor Summary | |
AspectRegistry(AspectManager aspectManager,
SystemDefinition definition)
Creates a new aspect registry. |
Method Summary | |
protected static void |
createConstructorRepository(Class klass)
Creates a new constructor repository for the class specified. |
protected static void |
createFieldRepository(Class klass)
Creates a new field repository for the class specified. |
protected static void |
createMethodRepository(Class klass)
Creates a new method repository for the class specified. |
AdviceInfo |
getAdviceIndexFor(String name)
Returns the index for a specific name to advice mapping. |
AspectContainer |
getAspectContainer(int index)
Retrieves a specific aspect container based on index. |
AspectContainer |
getAspectContainer(String name)
Returns the aspect container for a specific name. |
AspectContainer[] |
getAspectContainers()
Returns an array with all the aspect containers. |
int |
getAspectIndexFor(String name)
Returns the index for a specific name to aspect mapping. |
List |
getCflowPointcuts(ExpressionContext ctx)
Returns the cflow pointcut list for the context specified. |
static Constructor |
getConstructor(Class klass,
int constructorHash)
Returns a specific constructor by the class and the constructor hash. |
static ConstructorTuple |
getConstructorTuple(Class klass,
int constructorHash)
Returns a specific constructor by the class and the method hash. |
CrossCuttingInfo |
getCrossCuttingInfo(String name)
Returns the aspect for a specific name, deployed as perJVM. |
static Field |
getField(Class klass,
int fieldHash)
Returns a specific field by the class and the field hash. |
static MethodTuple |
getMethodTuple(Class klass,
int methodHash)
Returns a specific method by the class and the method hash. |
Mixin |
getMixin(int index)
Retrieves a specific mixin based on its index. |
Mixin |
getMixin(String name)
Returns the mixin implementation for a specific name. |
PointcutManager |
getPointcutManager(String name)
Returns the pointcut managers for the name specified. |
Collection |
getPointcutManagers()
Returns a list with all the pointcut managers. |
List |
getPointcuts(ExpressionContext ctx)
Returns the pointcut list for the context specified. |
boolean |
hasAspect(String name)
Checks if a specific class has an aspect defined. |
void |
initialize()
Initializes the aspect registry. |
void |
register(AspectContainer aspectContainer,
PointcutManager pointcutManager)
Registers a new aspect. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AspectRegistry(AspectManager aspectManager, SystemDefinition definition)
aspectManager
- the system aspectManagerdefinition
- the system definitionMethod Detail |
public void initialize()
public void register(AspectContainer aspectContainer, PointcutManager pointcutManager)
aspectContainer
- the aspectContainer for the aspect to registerpointcutManager
- the pointcut managerpublic AspectContainer getAspectContainer(int index)
index
- the index of the aspect
public AspectContainer getAspectContainer(String name)
name
- the name of the aspect
public CrossCuttingInfo getCrossCuttingInfo(String name)
name
- the name of the aspect
public Mixin getMixin(int index)
index
- the index of the introduction (aspect in this case)
public Mixin getMixin(String name)
name
- the name of the introduction (aspect in this case)
public int getAspectIndexFor(String name)
name
- the name of the aspect
public AdviceInfo getAdviceIndexFor(String name)
name
- the name of the advice
public PointcutManager getPointcutManager(String name)
name
- the name of the aspect
public Collection getPointcutManagers()
public AspectContainer[] getAspectContainers()
public List getPointcuts(ExpressionContext ctx)
ctx
- the expression context
public List getCflowPointcuts(ExpressionContext ctx)
ctx
- the expression context
public boolean hasAspect(String name)
name
- the name of the aspect
public static MethodTuple getMethodTuple(Class klass, int methodHash)
klass
- the class housing the methodmethodHash
- the method hash
public static ConstructorTuple getConstructorTuple(Class klass, int constructorHash)
klass
- the class housing the methodconstructorHash
- the constructor hash
public static Field getField(Class klass, int fieldHash)
klass
- the class housing the methodfieldHash
- the field hash
public static Constructor getConstructor(Class klass, int constructorHash)
klass
- the class housing the methodconstructorHash
- the constructor hash
protected static void createMethodRepository(Class klass)
klass
- the classprotected static void createConstructorRepository(Class klass)
klass
- the classprotected static void createFieldRepository(Class klass)
klass
- the class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |