|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.definition.AspectDefinition
public class AspectDefinition
Holds the meta-data for the aspect.
Field Summary | |
---|---|
static String |
ASPECTWERKZ_ASPECT_MODEL_TYPE
The default aspectwerkz aspect model type id. |
Constructor Summary | |
---|---|
AspectDefinition(String name,
ClassInfo classInfo,
SystemDefinition systemDefinition)
Creates a new aspect meta-data instance. |
Method Summary | |
---|---|
void |
addAfterAdviceDefinition(AdviceDefinition adviceDef)
Adds a new after advice. |
void |
addAroundAdviceDefinition(AdviceDefinition adviceDef)
Adds a new around advice. |
void |
addBeforeAdviceDefinition(AdviceDefinition adviceDef)
Adds a new before advice. |
void |
addInterfaceIntroductionDefinition(InterfaceIntroductionDefinition interfaceIntroDef)
Adds a new pure interface introduction. |
void |
addParameter(String name,
String value)
Adds a new parameter to the advice. |
void |
addPointcutDefinition(PointcutDefinition pointcutDef)
Adds a new pointcut definition. |
List |
getAdviceDefinitions()
Returns all the advices for this aspect. |
List |
getAfterAdviceDefinitions()
Returns the after advices. |
List |
getAroundAdviceDefinitions()
Returns the around advices. |
String |
getAspectModel()
Returns the aspect model. |
List |
getBeforeAdviceDefinitions()
Returns the before advices. |
ClassInfo |
getClassInfo()
Returns the class info. |
String |
getClassName()
Returns the class name. |
String |
getContainerClassName()
Returns the name of the container implementation class. |
DeploymentModel |
getDeploymentModel()
Returns the deployment model. |
List |
getInterfaceIntroductionDefinitions()
Returns the interface introductions. |
String |
getName()
Returns the name for the advice |
Map |
getParameters()
Returns the parameters as a Map. |
Collection |
getPointcutDefinitions()
Returns the pointcuts. |
String |
getQualifiedName()
Returns the fully qualified name for the advice |
SystemDefinition |
getSystemDefinition()
Returns the system definition. |
boolean |
isAspectWerkzAspect()
Checks if the aspect defined is an AspectWerkz aspect. |
void |
setAspectModel(String aspectModelType)
Sets the aspect model. |
void |
setContainerClassName(String containerClassName)
Sets the name of the container implementation class. |
void |
setDeploymentModel(DeploymentModel deploymentModel)
Sets the deployment model. |
void |
setName(String name)
Sets the name for the aspect. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ASPECTWERKZ_ASPECT_MODEL_TYPE
Constructor Detail |
---|
public AspectDefinition(String name, ClassInfo classInfo, SystemDefinition systemDefinition)
name
- the name of the aspectclassInfo
- the class info for the aspectsystemDefinition
- Method Detail |
---|
public String getName()
public void setName(String name)
name
- the namepublic String getQualifiedName()
public SystemDefinition getSystemDefinition()
public String getClassName()
public ClassInfo getClassInfo()
public String getAspectModel()
public boolean isAspectWerkzAspect()
public void setAspectModel(String aspectModelType)
aspectModelType
- the aspect modelpublic void setDeploymentModel(DeploymentModel deploymentModel)
deploymentModel
- the deployment modelpublic DeploymentModel getDeploymentModel()
public void addAroundAdviceDefinition(AdviceDefinition adviceDef)
adviceDef
- the around advicepublic List getAroundAdviceDefinitions()
public void addBeforeAdviceDefinition(AdviceDefinition adviceDef)
adviceDef
- the before advicepublic List getBeforeAdviceDefinitions()
public void addAfterAdviceDefinition(AdviceDefinition adviceDef)
adviceDef
- the after advicepublic List getAfterAdviceDefinitions()
public void addInterfaceIntroductionDefinition(InterfaceIntroductionDefinition interfaceIntroDef)
interfaceIntroDef
- the introductionpublic List getInterfaceIntroductionDefinitions()
public void addPointcutDefinition(PointcutDefinition pointcutDef)
pointcutDef
- the pointcut definitionpublic Collection getPointcutDefinitions()
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 getAdviceDefinitions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |