org.codehaus.aspectwerkz.xmldef.definition
Class StartupManager

java.lang.Object
  extended byorg.codehaus.aspectwerkz.xmldef.definition.StartupManager

public class StartupManager
extends java.lang.Object

Manages the startup procedure, walks through the definition and instantiates the aspects/advices/introduction/pointcuts.

Reads the definition, either as a class of as an XML file.

To use your XML definition file pass -Daspectwerkz.definition.file=PathToFile as parameter to the JVM.

If the above given parameter is not specified, the StartupManager tries locate a file called aspectwerkz.xml in the classpath and if this fails the last attempt is to use the ASPECTWERKZ_HOME/config/aspectwerkz.xml file (if there is one).

Author:
Jonas Bonér, Alexandre Vasseur

Field Summary
static java.lang.String ADVICE_CONTAINER_IMPLEMENTATION_CLASS
          The advice container class to use.
static java.lang.String ASPECTWERKZ_HOME
          The path to the aspectwerkz home directory.
static java.lang.String DEFAULT_ADVICE_CONTAINER
          The default advice container class.
static java.lang.String DEFAULT_DEFINITION_FILE
          The name of the default aspectwerkz definition file.
static java.lang.String DEFAULT_INTRODUCTION_CONTAINER
          The default introduction container class.
static java.lang.String DEFINITION_CLASS_NAME
          The definition class name.
static java.lang.String DEFINITION_FILE
          The path to the definition file.
static java.lang.String INTRODUCTION_CONTAINER_IMPLEMENTATION_CLASS
          The introduction container class to use.
 
Method Summary
static AdviceContainer createAdviceContainer(AbstractAdvice prototype)
          Creates a new container for the advice.
static IntroductionContainer createIntroductionContainer(java.lang.Class implClass)
          Creates a new container for the introduction.
static void initializeSystem(java.lang.String uuid, AspectWerkzDefinition definition)
          Loads the system definition.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASPECTWERKZ_HOME

public static final java.lang.String ASPECTWERKZ_HOME
The path to the aspectwerkz home directory.


DEFINITION_FILE

public static final java.lang.String DEFINITION_FILE
The path to the definition file.


DEFINITION_CLASS_NAME

public static final java.lang.String DEFINITION_CLASS_NAME
The definition class name.


DEFAULT_DEFINITION_FILE

public static final java.lang.String DEFAULT_DEFINITION_FILE
The name of the default aspectwerkz definition file.

See Also:
Constant Field Values

DEFAULT_INTRODUCTION_CONTAINER

public static final java.lang.String DEFAULT_INTRODUCTION_CONTAINER
The default introduction container class.

See Also:
Constant Field Values

DEFAULT_ADVICE_CONTAINER

public static final java.lang.String DEFAULT_ADVICE_CONTAINER
The default advice container class.

See Also:
Constant Field Values

INTRODUCTION_CONTAINER_IMPLEMENTATION_CLASS

public static final java.lang.String INTRODUCTION_CONTAINER_IMPLEMENTATION_CLASS
The introduction container class to use.


ADVICE_CONTAINER_IMPLEMENTATION_CLASS

public static final java.lang.String ADVICE_CONTAINER_IMPLEMENTATION_CLASS
The advice container class to use.

Method Detail

initializeSystem

public static void initializeSystem(java.lang.String uuid,
                                    AspectWerkzDefinition definition)
Loads the system definition.

Parameters:
uuid - the UUID for the weave model to load
definition - the definition for the system

createIntroductionContainer

public static IntroductionContainer createIntroductionContainer(java.lang.Class implClass)
Creates a new container for the introduction.

Parameters:
implClass - the introduction's implementation class

createAdviceContainer

public static AdviceContainer createAdviceContainer(AbstractAdvice prototype)
Creates a new container for the advice.

Parameters:
prototype - the advice's prototype


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