|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.definition.AspectDefinition
Holds the meta-data for the aspect.
Constructor Summary | |
AspectDefinition(String name,
String className,
String uuid)
Creates a new aspect meta-data instance. |
Method Summary | |
void |
addAfterAdvice(AdviceDefinition adviceMetaData)
Adds a new after advice. |
void |
addAroundAdvice(AdviceDefinition adviceMetaData)
Adds a new around advice. |
void |
addBeforeAdvice(AdviceDefinition adviceMetaData)
Adds a new before advice. |
void |
addInterfaceIntroduction(InterfaceIntroductionDefinition interfaceIntroductionMetaData)
Adds a new pure interface introduction. |
void |
addIntroduction(IntroductionDefinition introductionMetaData)
Adds a new implementation introduction. |
void |
addParameter(String name,
String value)
Adds a new parameter to the advice. |
void |
addPointcut(PointcutDefinition pointcutDef)
Adds a new pointcut definition. |
List |
getAfterAdvices()
Returns the after advices. |
List |
getAllAdvices()
Returns all the advices for this aspect. |
List |
getAroundAdvices()
Returns the around advices. |
List |
getBeforeAdvices()
Returns the before advices. |
String |
getClassName()
Returns the class name. |
String |
getContainerClassName()
Returns the name of the container implementation class. |
String |
getDeploymentModel()
Returns the deployment model. |
String |
getFullQualifiedName()
Returns the pattern for the aspect |
List |
getInterfaceIntroductions()
Returns the interface introductions. |
List |
getIntroductions()
Returns the implementation introductions. |
String |
getName()
Returns the pattern for the aspect |
Map |
getParameters()
Returns the parameters as a Map. |
Collection |
getPointcuts()
Returns the pointcuts. |
void |
removeAroundAdvice(AdviceDefinition adviceMetaData)
Remove an around advice. |
void |
setContainerClassName(String containerClassName)
Sets the name of the container implementation class. |
void |
setDeploymentModel(String deploymentModel)
Sets the deployment model. |
void |
setName(String name)
Sets the name for the aspect. |
static List |
sortAdvices(List advices)
Sorts the advice by method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AspectDefinition(String name, String className, String uuid)
name
- the name of the aspectclassName
- the class name of the aspectMethod Detail |
public String getName()
public String getFullQualifiedName()
public void setName(String name)
name
- the namepublic String getClassName()
public void setDeploymentModel(String deploymentModel)
deploymentModel
- the deployment modelpublic String getDeploymentModel()
public void addAroundAdvice(AdviceDefinition adviceMetaData)
adviceMetaData
- the around advicepublic void removeAroundAdvice(AdviceDefinition adviceMetaData)
adviceMetaData
- the around advicepublic List getAroundAdvices()
public void addBeforeAdvice(AdviceDefinition adviceMetaData)
adviceMetaData
- the before advicepublic List getBeforeAdvices()
public void addAfterAdvice(AdviceDefinition adviceMetaData)
adviceMetaData
- the after advicepublic List getAfterAdvices()
public void addInterfaceIntroduction(InterfaceIntroductionDefinition interfaceIntroductionMetaData)
interfaceIntroductionMetaData
- the introductionpublic void addIntroduction(IntroductionDefinition introductionMetaData)
introductionMetaData
- the introductionpublic List getInterfaceIntroductions()
public List getIntroductions()
public void addPointcut(PointcutDefinition pointcutDef)
pointcutDef
- the pointcut definitionpublic Collection getPointcuts()
public void addParameter(String name, String value)
name
- the name of the parametervalue
- the value for the parameterpublic Map getParameters()
public void setContainerClassName(String containerClassName)
containerClassName
- the container class namepublic String getContainerClassName()
public List getAllAdvices()
public static List sortAdvices(List advices)
advices
- a list with the advices to sort
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |