org.codehaus.aspectwerkz.definition
Class StartupManager

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

public class StartupManager
extends 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 String DEFAULT_ASPECT_CONTAINER
          The default aspect container class.
 
Method Summary
static AspectContainer createAspectContainer(CrossCuttingInfo crossCuttingInfo)
          Creates a new aspect container.
static void initializeSystem(AspectManager aspectManager, SystemDefinition definition)
          Loads the system definition.
static void reinitializeSystem(ClassLoader loader, SystemDefinition definition)
          ReLoads the system definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ASPECT_CONTAINER

public static final String DEFAULT_ASPECT_CONTAINER
The default aspect container class.

See Also:
Constant Field Values
Method Detail

initializeSystem

public static void initializeSystem(AspectManager aspectManager,
                                    SystemDefinition definition)
Loads the system definition.

Parameters:
aspectManager - the aspectManager for the system
definition - the definition for the system

reinitializeSystem

public static void reinitializeSystem(ClassLoader loader,
                                      SystemDefinition definition)
ReLoads the system definition.

Parameters:
loader - the class loader
definition - the definition for the system

createAspectContainer

public static AspectContainer createAspectContainer(CrossCuttingInfo crossCuttingInfo)
Creates a new aspect container.

Parameters:
crossCuttingInfo - the cross-cutting info for the aspect


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