|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.aspectwerkz.aspect.management.AspectManager
Manages the aspects.
Handles deployment, redeployment, management, configuration or redefinition of the aspects.
| Field Summary | |
SystemDefinition |
m_definition
The definition. |
AspectSystem |
m_system
The system this AspectManager is defined in. |
| Constructor Summary | |
AspectManager(AspectSystem system,
SystemDefinition definition)
Creates a new aspect manager. |
|
| Method Summary | |
void |
createAspect(String name,
String aspectClassName,
int deploymentModel,
ClassLoader loader)
Creates and registers new aspect at runtime. |
AdviceInfo |
getAdviceIndexFor(String name)
Returns the index for a specific name to advice mapping. |
AspectContainer |
getAspectContainer(int index)
Returns the aspect container by its 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. |
ConstructorTuple |
getConstructorTuple(Class klass,
int constructorHash)
Returns a specific constructor by the class and the constructor index. |
Object |
getCrossCuttingInfo(String name)
Returns the aspect for a specific name, deployed as perJVM. |
CrossCuttingInfo[] |
getCrossCuttingInfos()
Returns an array with all the cross-cutting infos. |
Field |
getField(Class klass,
int fieldHash)
Returns a specific field by the class and the field index. |
MethodTuple |
getMethodTuple(Class klass,
int methodHash)
Returns a specific method by the class and the method index. |
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 manager 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. |
String |
getUuid()
Returns the UUID for the system. |
boolean |
hasAspect(String name)
Checks if a specific class has an aspect defined. |
void |
initialize()
Initializes the manager. |
void |
register(AspectContainer container,
PointcutManager aspectMetaData)
Registers a new aspect. |
String |
toString()
Returns the string representation of the manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final AspectSystem m_system
public SystemDefinition m_definition
| Constructor Detail |
public AspectManager(AspectSystem system,
SystemDefinition definition)
system - the systemdefinition - the system definition| Method Detail |
public void initialize()
public void register(AspectContainer container,
PointcutManager aspectMetaData)
container - the containern for the aspect to registeraspectMetaData - the aspect meta-data
public void createAspect(String name,
String aspectClassName,
int deploymentModel,
ClassLoader loader)
name - the name of the aspectaspectClassName - the class name of the aspectdeploymentModel - the deployment model for the aspect (constants in the DeploymemtModel class, e.g. f.e.
DeploymentModel.PER_JVM)loader - an optional class loader (if null it uses the context classloader)public String getUuid()
public AspectContainer getAspectContainer(int index)
index - the index of the aspect
public AspectContainer getAspectContainer(String name)
name - the name of the aspect
public AspectContainer[] getAspectContainers()
public Object getCrossCuttingInfo(String name)
name - the name of the aspect
public CrossCuttingInfo[] getCrossCuttingInfos()
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 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 MethodTuple getMethodTuple(Class klass,
int methodHash)
klass - the class housing the methodmethodHash - the method hash
public ConstructorTuple getConstructorTuple(Class klass,
int constructorHash)
klass - the class housing the methodconstructorHash - the method hash
public Field getField(Class klass,
int fieldHash)
klass - the class housing the methodfieldHash - the method hash
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||