|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the aspectwerkz definition implementations.
Field Summary | |
static java.lang.String |
CALLER_SIDE_DELIMITER
|
static int |
DEF_TYPE_ATTRIB_DEF
Attrib definition flag. |
static int |
DEF_TYPE_XML_DEF
XML definition flag. |
static java.lang.String |
PER_CLASS
|
static java.lang.String |
PER_INSTANCE
|
static java.lang.String |
PER_JVM
|
static java.lang.String |
PER_THREAD
|
static java.lang.String |
SYSTEM_ASPECT
The name of the system aspect. |
static java.lang.String |
THROWS_DELIMITER
|
Method Summary | |
void |
addAspectToUse(java.lang.String className)
Adds a new aspect to use. |
void |
addExcludePackage(java.lang.String excludePackage)
Adds a new exclude package. |
void |
addIncludePackage(java.lang.String includePackage)
Adds a new include package. |
void |
buildMixinMetaDataRepository(java.util.Set repository,
java.lang.ClassLoader loader)
Builds up a meta-data repository for the mixins. |
java.util.Collection |
getAdviceDefinitions()
Returns a collection with the advice definitions registered. |
java.util.Collection |
getAspectDefinitions()
Returns a collection with the aspect definitions registered. |
java.util.Set |
getAspectsToUse()
Returns a set with the aspects to use. |
java.util.Set |
getIncludePackages()
Returns the transformation scopes. |
java.util.Collection |
getIntroductionDefinitions()
Returns a collection with the introduction definitions registered. |
java.lang.String |
getIntroductionImplName(java.lang.String introductionName)
Returns the name of the implementation for an introduction. |
java.lang.String |
getJoinPointController(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns the class name for the join point controller, if there is a match. |
java.lang.String |
getUuid()
Returns the UUID for the definition. |
boolean |
hasAdvice(java.lang.String name)
Checks if there exists an advice with the name specified. |
boolean |
hasCallPointcut(ClassMetaData classMetaData)
Checks if a class should care about advising caller side method invocations. |
boolean |
hasExecutionPointcut(ClassMetaData classMetaData)
Checks if a method has a MethodPointcut. |
boolean |
hasExecutionPointcut(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Checks if a method has a MethodPointcut. |
boolean |
hasGetPointcut(ClassMetaData classMetaData)
Checks if a class has a GetFieldPointcut. |
boolean |
hasGetPointcut(ClassMetaData classMetaData,
FieldMetaData fieldMetaData)
Checks if a class and field has a GetFieldPointcut. |
boolean |
hasIntroduction(java.lang.String name)
Checks if there exists an introduction with the name specified. |
boolean |
hasIntroductions(ClassMetaData classMetaData)
Checks if a class has an Mixin. |
boolean |
hasSetPointcut(ClassMetaData classMetaData)
Checks if a class has a SetFieldPointcut. |
boolean |
hasSetPointcut(ClassMetaData classMetaData,
FieldMetaData fieldMetaData)
Checks if a class and field has a SetFieldPointcut. |
boolean |
hasThrowsPointcut(ClassMetaData classMetaData)
Checks if a class and method has a ThrowsPointcut. |
boolean |
hasThrowsPointcut(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Checks if a class and method has a ThrowsPointcut. |
boolean |
inExcludePackage(java.lang.String className)
Checks if a class has an AspectMetaData. |
boolean |
inIncludePackage(java.lang.String className)
Checks if a class has an AspectMetaData. |
boolean |
isAttribDef()
Checks if the definition is of type attribute definition. |
boolean |
isPickedOutByCallPointcut(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Checks if a method is a defined as a caller side method. |
boolean |
isXmlDef()
Checks if the definition is of type XML definition. |
void |
loadAspects(java.lang.ClassLoader loader)
Loads the aspects. |
void |
setUuid(java.lang.String uuid)
Sets the UUID for the definition. |
Field Detail |
public static final java.lang.String PER_JVM
public static final java.lang.String PER_CLASS
public static final java.lang.String PER_INSTANCE
public static final java.lang.String PER_THREAD
public static final java.lang.String THROWS_DELIMITER
public static final java.lang.String CALLER_SIDE_DELIMITER
public static final int DEF_TYPE_XML_DEF
public static final int DEF_TYPE_ATTRIB_DEF
public static final java.lang.String SYSTEM_ASPECT
Method Detail |
public boolean isAttribDef()
public boolean isXmlDef()
public void setUuid(java.lang.String uuid)
uuid
- the UUIDpublic java.lang.String getUuid()
public java.util.Set getIncludePackages()
public java.util.Collection getAspectDefinitions()
public java.util.Collection getIntroductionDefinitions()
public java.util.Collection getAdviceDefinitions()
public java.lang.String getIntroductionImplName(java.lang.String introductionName)
introductionName
- the name of the introduction
public java.lang.String getJoinPointController(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the class meta-datamethodMetaData
- the method meta-data
public java.util.Set getAspectsToUse()
public void addAspectToUse(java.lang.String className)
className
- the class name of the aspectpublic void addIncludePackage(java.lang.String includePackage)
includePackage
- the package to includepublic void addExcludePackage(java.lang.String excludePackage)
excludePackage
- the package to excludepublic boolean hasAdvice(java.lang.String name)
name
- the name of the advice
public boolean hasIntroduction(java.lang.String name)
name
- the name of the introduction
public boolean inIncludePackage(java.lang.String className)
className
- the name or the class
public boolean inExcludePackage(java.lang.String className)
className
- the name or the class
public boolean hasIntroductions(ClassMetaData classMetaData)
classMetaData
- the class meta-data
public boolean hasExecutionPointcut(ClassMetaData classMetaData)
classMetaData
- the class meta-data
public boolean hasExecutionPointcut(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the class meta-datamethodMetaData
- the method meta-data
public boolean hasGetPointcut(ClassMetaData classMetaData)
classMetaData
- the class meta-data
public boolean hasGetPointcut(ClassMetaData classMetaData, FieldMetaData fieldMetaData)
classMetaData
- the class meta-datafieldMetaData
- the name or the field
public boolean hasSetPointcut(ClassMetaData classMetaData)
classMetaData
- the class meta-data
public boolean hasSetPointcut(ClassMetaData classMetaData, FieldMetaData fieldMetaData)
classMetaData
- the class meta-datafieldMetaData
- the name or the field
public boolean hasThrowsPointcut(ClassMetaData classMetaData)
classMetaData
- the class meta-data
public boolean hasThrowsPointcut(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the class meta-datamethodMetaData
- the name or the method
public boolean hasCallPointcut(ClassMetaData classMetaData)
classMetaData
- the class meta-data
public boolean isPickedOutByCallPointcut(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the class meta-datamethodMetaData
- the name or the method
public void buildMixinMetaDataRepository(java.util.Set repository, java.lang.ClassLoader loader)
repository
- the repositoryloader
- the class loader to usepublic void loadAspects(java.lang.ClassLoader loader)
loader
- the class loader to use to load the aspects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |