|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.definition.SystemDefinition
Abstraction of the system definition, defines the aspect system.
Field Summary | |
static Map |
EMPTY_HASH_MAP
Empty hash map. |
static String |
PER_CLASS
|
static String |
PER_INSTANCE
|
static String |
PER_JVM
|
static String |
PER_THREAD
|
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. |
void |
addExcludePackage(String excludePackage)
Adds a new exclude package. |
void |
addIncludePackage(String includePackage)
Adds a new include package. |
void |
addInterfaceIntroductionDefinition(InterfaceIntroductionDefinition introDef)
Adds a new pure interface mixin definition. |
void |
addIntroductionDefinition(IntroductionDefinition introDef)
Adds a new mixin definition. |
void |
addParameter(String aspectName,
String key,
String value)
Adds a new parameter for the aspect. |
void |
addPreparePackage(String preparePackage)
Adds a new prepare package. |
AdviceDefinition |
getAdviceDefinition(String name)
Returns a specific advice definition. |
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. |
int |
getAspectIndexByName(String aspectName)
Returns the index for a specific introduction. |
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 |
getIntroductionDefinitions()
Returns a collection with the introduction definitions registered. |
List |
getIntroductionDefinitions(ExpressionContext ctx)
Returns the introduction definitions for a specific class. |
int |
getMixinIndexByName(String mixinName)
Returns the index for a specific introduction. |
Map |
getParameters(String aspectName)
Returns parameters for the aspect. |
Set |
getPreparePackages()
Returns the prepare packages. |
String |
getUuid()
Returns the UUID for the definition. |
boolean |
hasAdvice(String name)
Checks if there exists an advice with the name specified. |
boolean |
hasCflowPointcut(ExpressionContext ctx)
Checks if a method has an cflow pointcut. |
boolean |
hasIntroduction(ExpressionContext ctx)
Checks if a class has an introduction. |
boolean |
hasIntroduction(String name)
Checks if there exists an introduction with the name specified. |
boolean |
hasPointcut(ExpressionContext ctx)
Checks if a method has an 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. |
boolean |
isInterfaceIntroduced(ExpressionContext ctx)
Checks if a class is advised with an interface introduction. |
boolean |
isIntroduced(ExpressionContext ctx)
Checks if a class has an introduction. |
boolean |
isIntroduced(ExpressionContext[] ctxs)
Checks if a class has an introduction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PER_JVM
public static final String PER_CLASS
public static final String PER_INSTANCE
public static final String PER_THREAD
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 getIntroductionDefinitions()
public Collection getAdviceDefinitions()
public AspectDefinition getAspectDefinition(String name)
name
- the name of the aspect definition
public AdviceDefinition getAdviceDefinition(String name)
name
- the name of the advice definition
public List getIntroductionDefinitions(ExpressionContext ctx)
ctx
- the expression context
public List getInterfaceIntroductionDefinitions(ExpressionContext ctx)
ctx
- the expression context
public int getAspectIndexByName(String aspectName)
aspectName
- the name of the aspect
public int getMixinIndexByName(String mixinName)
mixinName
- the name of the mixin
public void addAspect(AspectDefinition aspectDef)
aspectDef
- the aspect definitionpublic void addIntroductionDefinition(IntroductionDefinition introDef)
introDef
- the mixin definitionpublic void addInterfaceIntroductionDefinition(InterfaceIntroductionDefinition introDef)
introDef
- 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 hasAdvice(String name)
name
- the name of the advice
public boolean hasIntroduction(String name)
name
- the name of the introduction
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 hasIntroduction(ExpressionContext ctx)
ctx
- the expression context
public boolean hasPointcut(ExpressionContext ctx)
ctx
- the expression context
public boolean hasCflowPointcut(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 isIntroduced(ExpressionContext[] ctxs)
ctxs
- an array with the expression contexts
public boolean isIntroduced(ExpressionContext ctx)
ctx
- the expression context
public boolean isInterfaceIntroduced(ExpressionContext ctx)
ctx
- the expression context
public void addParameter(String aspectName, String key, String value)
aspectName
- the name of the aspectkey
- the keyvalue
- the valuepublic Map getParameters(String aspectName)
aspectName
- the name of the aspect
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |