org.codehaus.aspectwerkz.definition
Class DefinitionParserHelper

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

public class DefinitionParserHelper
extends Object

Helper class for the attribute and the XML definition parsers.

Author:
Jonas Bonér , Alexandre Vasseur

Field Summary
static String EXPR_PREFIX
           
 
Constructor Summary
DefinitionParserHelper()
           
 
Method Summary
static AdviceDefinition createAdviceDefinition(String adviceName, AdviceType adviceType, String expression, String specialArgumentType, String aspectName, String aspectClassName, Method method, int methodIndex, AspectDefinition aspectDef)
          Creates a new advice definition.
static void createAndAddInterfaceIntroductionDefToAspectDef(String expression, String introductionName, String interfaceClassName, AspectDefinition aspectDef)
          Creates and add interface introduction definition to aspect definition.
static void createAndAddIntroductionDefToAspectDef(Class mixinClass, String expression, String deploymentModel, AspectDefinition aspectDef)
          Creates and add introduction definition to aspect definition.
static void createAndAddPointcutDefToAspectDef(String name, String expression, AspectDefinition aspectDef)
          Creates and add pointcut definition to aspect definition.
static InterfaceIntroductionDefinition createInterfaceIntroductionDefinition(String introductionName, String expression, String interfaceClassName, AspectDefinition aspectDef)
          Creates a new interface introduction definition.
static IntroductionDefinition createIntroductionDefinition(Class mixinClass, String expression, String deploymentModel, AspectDefinition aspectDef)
          Creates an introduction definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPR_PREFIX

public static final String EXPR_PREFIX
See Also:
Constant Field Values
Constructor Detail

DefinitionParserHelper

public DefinitionParserHelper()
Method Detail

createAndAddPointcutDefToAspectDef

public static void createAndAddPointcutDefToAspectDef(String name,
                                                      String expression,
                                                      AspectDefinition aspectDef)
Creates and add pointcut definition to aspect definition.

Parameters:
name -
expression -
aspectDef -

createAndAddIntroductionDefToAspectDef

public static void createAndAddIntroductionDefToAspectDef(Class mixinClass,
                                                          String expression,
                                                          String deploymentModel,
                                                          AspectDefinition aspectDef)
Creates and add introduction definition to aspect definition.

Parameters:
mixinClass -
expression -
deploymentModel -
aspectDef -

createAndAddInterfaceIntroductionDefToAspectDef

public static void createAndAddInterfaceIntroductionDefToAspectDef(String expression,
                                                                   String introductionName,
                                                                   String interfaceClassName,
                                                                   AspectDefinition aspectDef)
Creates and add interface introduction definition to aspect definition.

Parameters:
expression -
introductionName -
interfaceClassName -
aspectDef -

createAdviceDefinition

public static AdviceDefinition createAdviceDefinition(String adviceName,
                                                      AdviceType adviceType,
                                                      String expression,
                                                      String specialArgumentType,
                                                      String aspectName,
                                                      String aspectClassName,
                                                      Method method,
                                                      int methodIndex,
                                                      AspectDefinition aspectDef)
Creates a new advice definition.

Parameters:
adviceName - the advice name
adviceType - the advice type
expression - the advice expression
specialArgumentType - the arg
aspectName - the aspect name
aspectClassName - the aspect class name
method - the advice method
methodIndex - the advice method index
aspectDef - the aspect definition
Returns:
the new advice definition

createIntroductionDefinition

public static IntroductionDefinition createIntroductionDefinition(Class mixinClass,
                                                                  String expression,
                                                                  String deploymentModel,
                                                                  AspectDefinition aspectDef)
Creates an introduction definition.

Parameters:
mixinClass -
expression -
deploymentModel -
aspectDef -
Returns:

createInterfaceIntroductionDefinition

public static InterfaceIntroductionDefinition createInterfaceIntroductionDefinition(String introductionName,
                                                                                    String expression,
                                                                                    String interfaceClassName,
                                                                                    AspectDefinition aspectDef)
Creates a new interface introduction definition.

Parameters:
introductionName - the introduction name
expression - the pointcut expression
interfaceClassName - the class name of the interface
aspectDef - the aspect definition
Returns:
the new introduction definition


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