org.codehaus.aspectwerkz.definition
Class AdviceDefinition

java.lang.Object
  extended byorg.codehaus.aspectwerkz.definition.AdviceDefinition

public class AdviceDefinition
extends Object

Holds the meta-data for the advices.

Author:
Jonas Bonér

Constructor Summary
AdviceDefinition(String name, AdviceType type, String specialArgumentType, String aspectName, String aspectClassName, ExpressionInfo expressionInfo, Method method, int methodIndex, AspectDefinition aspectDef)
          Creates a new advice meta-data instance.
 
Method Summary
 AdviceDefinition copyAt(ExpressionInfo expressionInfo)
          Deep copy of the definition.
 String getAspectClassName()
          Returns the class name.
 String getAspectName()
          Returns the aspect name.
 String getAttribute()
          Returns the attribute.
 String getDeploymentModel()
          Returns the the deployment model for the advice
 ExpressionInfo getExpressionInfo()
          Returns the expression.
 Method getMethod()
          Returns the method.
 int getMethodIndex()
          Returns the method index for the introduction method.
 String getName()
          Returns the name of the advice.
 String getSpecialArgumentType()
          Returns the special arg type, such as returning(TYPE) or throwing(TYPE).
 AdviceType getType()
          Returns the advice type.
 void setAttribute(String attribute)
          Sets the attribute.
 void setName(String name)
          Sets the name of the advice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdviceDefinition

public AdviceDefinition(String name,
                        AdviceType type,
                        String specialArgumentType,
                        String aspectName,
                        String aspectClassName,
                        ExpressionInfo expressionInfo,
                        Method method,
                        int methodIndex,
                        AspectDefinition aspectDef)
Creates a new advice meta-data instance.

Parameters:
name - the name of the expressionInfo
type - the type of the advice
specialArgumentType - the special arg type, such as returning(TYPE) or throwing(TYPE)
aspectName - the name of the aspect
aspectClassName - the class name of the aspect
expressionInfo - the expressionInfo
method - the method
methodIndex - the method index
Method Detail

getType

public AdviceType getType()
Returns the advice type.

Returns:
the advice type

getName

public String getName()
Returns the name of the advice.

Returns:
the name

setName

public void setName(String name)
Sets the name of the advice.

Parameters:
name - the name

getExpressionInfo

public ExpressionInfo getExpressionInfo()
Returns the expression.

Returns:
the expression

getAspectClassName

public String getAspectClassName()
Returns the class name.

Returns:
the class name

getAspectName

public String getAspectName()
Returns the aspect name.

Returns:
the aspect name

getSpecialArgumentType

public String getSpecialArgumentType()
Returns the special arg type, such as returning(TYPE) or throwing(TYPE).

Returns:

getMethod

public Method getMethod()
Returns the method.

Returns:
the method

getMethodIndex

public int getMethodIndex()
Returns the method index for the introduction method.

Returns:
the method index

getDeploymentModel

public String getDeploymentModel()
Returns the the deployment model for the advice

Returns:
the deployment model

getAttribute

public String getAttribute()
Returns the attribute.

Returns:
the attribute

setAttribute

public void setAttribute(String attribute)
Sets the attribute.

Parameters:
attribute - the attribute

copyAt

public AdviceDefinition copyAt(ExpressionInfo expressionInfo)
Deep copy of the definition.

Parameters:
expressionInfo -
Returns:


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.