org.codehaus.aspectwerkz.definition
Class AspectDefinition

java.lang.Object
  extended byorg.codehaus.aspectwerkz.definition.AspectDefinition
All Implemented Interfaces:
java.io.Serializable

public class AspectDefinition
extends java.lang.Object
implements java.io.Serializable

Holds the aspect definition.

Author:
Jonas Bonér
See Also:
Serialized Form

Constructor Summary
AspectDefinition()
           
 
Method Summary
 void addAdviceWeavingRule(AdviceWeavingRule weavingRule)
          Adds a new advice weaving rule.
 void addControllerDef(ControllerDefinition controllerDef)
          Adds a new controller definition.
 void addIntroductionWeavingRule(IntroductionWeavingRule weavingRule)
          Adds a new introduction weaving rule.
 void addPointcutDef(PointcutDefinition pointcut)
          Adds a new pointcut.
 java.util.List getAdviceWeavingRules()
          Returns a list with the advice weaving rules.
 java.util.Collection getControllerDefs()
          Returns a list with the controllers.
 java.lang.String getExtends()
          Returns the name of the aspect to extend.
 java.util.List getIntroductionWeavingRules()
          Returns a list with the introduction weaving rules.
 java.lang.String getName()
          Returns the pattern for the aspect
 PointcutDefinition getPointcutDef(java.lang.String pointcut)
          Returns the pointcut definition by its name.
 java.util.Collection getPointcutDefs()
          Returns a list with the pointcuts.
 boolean isAbstract()
          Checks if the aspect is abstract.
 void setAbstract(boolean anAbstract)
          Marks the aspect as abstract.
 void setExtends(java.lang.String anExtends)
          Sets the name of the aspect to extend.
 void setName(java.lang.String name)
          Sets the name for the aspect.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectDefinition

public AspectDefinition()
Method Detail

getName

public java.lang.String getName()
Returns the pattern for the aspect

Returns:
the pattern

setName

public void setName(java.lang.String name)
Sets the name for the aspect.

Parameters:
name - the name

getExtends

public java.lang.String getExtends()
Returns the name of the aspect to extend.

Returns:
the name of the aspect to extend

setExtends

public void setExtends(java.lang.String anExtends)
Sets the name of the aspect to extend.

Parameters:
anExtends - the name of the aspect to extend

getPointcutDefs

public java.util.Collection getPointcutDefs()
Returns a list with the pointcuts.

Returns:
the pointcuts

addPointcutDef

public void addPointcutDef(PointcutDefinition pointcut)
Adds a new pointcut.

Parameters:
pointcut - a pointcut

getControllerDefs

public java.util.Collection getControllerDefs()
Returns a list with the controllers.

Returns:
the controllers

addControllerDef

public void addControllerDef(ControllerDefinition controllerDef)
Adds a new controller definition.

Parameters:
controllerDef - a controller definition

getIntroductionWeavingRules

public java.util.List getIntroductionWeavingRules()
Returns a list with the introduction weaving rules.

Returns:
the introduction weaving rules

addIntroductionWeavingRule

public void addIntroductionWeavingRule(IntroductionWeavingRule weavingRule)
Adds a new introduction weaving rule.

Parameters:
weavingRule - an introduction weaving rule

getAdviceWeavingRules

public java.util.List getAdviceWeavingRules()
Returns a list with the advice weaving rules.

Returns:
the advice weaving rules

addAdviceWeavingRule

public void addAdviceWeavingRule(AdviceWeavingRule weavingRule)
Adds a new advice weaving rule.

Parameters:
weavingRule - an advice weaving rule

getPointcutDef

public PointcutDefinition getPointcutDef(java.lang.String pointcut)
Returns the pointcut definition by its name.

Parameters:
pointcut - the name of the pointcut
Returns:
the pointcut definition

isAbstract

public boolean isAbstract()
Checks if the aspect is abstract.

Returns:
boolean

setAbstract

public void setAbstract(boolean anAbstract)
Marks the aspect as abstract.

Parameters:
anAbstract - boolean


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.