|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.definition.SystemDefinition
public class SystemDefinition
TODO clean up - remove methods not used, refactor etc.
Abstraction of the system definition, defines the aspect system.
Field Summary | |
---|---|
static Map |
EMPTY_HASH_MAP
Empty hash map. |
Constructor Summary | |
---|---|
SystemDefinition(String uuid)
Creates a new instance, creates and sets the system cflow aspect. |
Method Summary | |
---|---|
void |
addAspect(AspectDefinition aspectDef)
Adds a new aspect definition For each of its bounded pointcut, register cflow aspects as necessary. |
void |
addAspectOverwriteIfExists(AspectDefinition aspectDef)
Adds a new aspect definition, overwrites the previous one with the same name (if there is one). |
void |
addDeploymentScope(DeploymentScope deploymentScope)
Adds a deployment scope to the system. |
void |
addExcludePackage(String excludePackage)
Adds a new exclude package. |
void |
addIncludePackage(String includePackage)
Adds a new include package. |
void |
addMixinDefinition(MixinDefinition mixinDef)
Adds a new mixin definition. |
void |
addPreparePackage(String preparePackage)
Adds a new prepare package. |
static SystemDefinition |
createVirtualDefinitionAt(ClassLoader loader)
Create a new virtual system definition for the given loader and add the virtual aspect in it. |
boolean |
equals(Object o)
|
Collection |
getAdviceDefinitions()
Returns a collection with the advice definitions registered. |
AspectDefinition |
getAspectDefinition(String name)
Returns a specific aspect definition. |
Collection |
getAspectDefinitions()
Returns a collection with the aspect definitions registered. |
DeploymentScope |
getDeploymentScope(String name)
Returns the deployment scope with the name specified. |
Collection |
getDeploymentScopes()
Returns a collection with all deployment scopes in the system. |
Set |
getExcludePackages()
Returns the exclude packages. |
Set |
getIncludePackages()
Returns the include packages. |
List |
getInterfaceIntroductionDefinitions(ExpressionContext ctx)
Returns the interface introductions for a certain class merged with the implementation based introductions as well. |
Collection |
getMixinDefinitions()
Returns a collection with the mixin definitions registered. |
List |
getMixinDefinitions(ExpressionContext ctx)
Returns the mixin definitions matching a specfic expression. |
Set |
getPreparePackages()
Returns the prepare packages. |
String |
getUuid()
Returns the UUID for the definition. |
int |
hashCode()
|
boolean |
hasIntroducedInterface(ExpressionContext ctx)
Checks if a class is advised with an interface introduction. |
boolean |
hasIntroducedInterface(ExpressionContext[] ctxs)
Checks if a class is advised with an interface introduction. |
boolean |
hasMixin(ExpressionContext ctx)
Checks if a class has an mixin. |
boolean |
hasMixin(ExpressionContext[] ctxs)
Checks if a class has an mixin. |
boolean |
hasPointcut(ExpressionContext ctx)
Checks if a context has a pointcut. |
boolean |
inExcludePackage(String className)
Checks if a class should be excluded. |
boolean |
inIncludePackage(String className)
Checks if a class should be included. |
boolean |
inPreparePackage(String className)
Checks if a class is in prepare declaration |
boolean |
isAdvised(ExpressionContext ctx)
Checks if a class is advised. |
boolean |
isAdvised(ExpressionContext[] ctxs)
Checks if a class is advised. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Map EMPTY_HASH_MAP
Constructor Detail |
---|
public SystemDefinition(String uuid)
Method Detail |
---|
public String getUuid()
public Set getIncludePackages()
public Set getExcludePackages()
public Collection getAspectDefinitions()
public Collection getMixinDefinitions()
public Collection getAdviceDefinitions()
public AspectDefinition getAspectDefinition(String name)
name
- the name of the aspect definition
public List getMixinDefinitions(ExpressionContext ctx)
ctx
- the expression context
public List getInterfaceIntroductionDefinitions(ExpressionContext ctx)
ctx
- the expression context
public void addAspect(AspectDefinition aspectDef)
aspectDef
- the aspect definitionpublic void addAspectOverwriteIfExists(AspectDefinition aspectDef)
aspectDef
- the aspect definitionpublic void addMixinDefinition(MixinDefinition mixinDef)
mixinDef
- the mixin definitionpublic void addIncludePackage(String includePackage)
includePackage
- the new include packagepublic void addExcludePackage(String excludePackage)
excludePackage
- the new exclude packagepublic void addPreparePackage(String preparePackage)
preparePackage
- the new prepare packagepublic Set getPreparePackages()
public boolean inIncludePackage(String className)
className
- the name or the class
public boolean inExcludePackage(String className)
className
- the name or the class
public boolean inPreparePackage(String className)
className
- the name or the class
public boolean hasPointcut(ExpressionContext ctx)
ctx
- the expression context
public boolean isAdvised(ExpressionContext[] ctxs)
ctxs
- an array with the expression contexts
public boolean isAdvised(ExpressionContext ctx)
ctx
- the expression context
public boolean hasMixin(ExpressionContext[] ctxs)
ctxs
- an array with the expression contexts
public boolean hasMixin(ExpressionContext ctx)
ctx
- the expression context
public boolean hasIntroducedInterface(ExpressionContext[] ctxs)
ctxs
- the expression contexts
public boolean hasIntroducedInterface(ExpressionContext ctx)
ctx
- the expression context
public Collection getDeploymentScopes()
public DeploymentScope getDeploymentScope(String name)
name
- the name of the deployment scope
public void addDeploymentScope(DeploymentScope deploymentScope)
deploymentScope
- the deployment scopepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static SystemDefinition createVirtualDefinitionAt(ClassLoader loader)
loader
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |