org.codehaus.aspectwerkz.attribdef.definition
Class StartupManager

java.lang.Object
  extended byorg.codehaus.aspectwerkz.attribdef.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

Field Summary
static java.lang.String ASPECT_CONTAINER_IMPLEMENTATION_CLASS
          The aspect container class to use.
static java.lang.String ASPECTWERKZ_HOME
          The path to the aspectwerkz home directory.
static java.lang.String DEFAULT_ASPECT_CONTAINER
          The default aspect container class.
static java.lang.String DEFAULT_DEFINITION_FILE
          The name of the default aspectwerkz definition file.
static java.lang.String DEFINITION_CLASS_NAME
          The definition class name.
static java.lang.String DEFINITION_FILE
          The path to the definition file.
 
Method Summary
static AspectContainer createAspectContainer(Aspect aspect)
          Creates a new container for the aspect.
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_ASPECT_CONTAINER

public static final java.lang.String DEFAULT_ASPECT_CONTAINER
The default aspect container class.

See Also:
Constant Field Values

ASPECT_CONTAINER_IMPLEMENTATION_CLASS

public static final java.lang.String ASPECT_CONTAINER_IMPLEMENTATION_CLASS
The aspect 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

createAspectContainer

public static AspectContainer createAspectContainer(Aspect aspect)
Creates a new container for the aspect.

Parameters:
aspect - the aspect's implementation class


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