org.codehaus.aspectwerkz.definition
Class DefinitionLoader

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

public class DefinitionLoader
extends Object

Handles the loading of the definition in various ways and formats.

Author:
Jonas Bonér

Field Summary
static String DEFAULT_DEFINITION_FILE_NAME
          The default name for the definition file.
static String DEFAULT_SYSTEM
          The UUID of the single AspectWerkz system if only one definition is used.
static String DEFINITION_FILE
          The path to the definition file.
 
Constructor Summary
DefinitionLoader()
           
 
Method Summary
static List getDefaultDefinition(ClassLoader loader)
          Returns the default defintion.
static List getDefaultDefinitionAspectNames()
          Returns the aspect names in the default definition.
static SystemDefinition getDefinition(ClassLoader loader, String uuid)
          Loads the aspectwerkz definition from disk based on a specific UUID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SYSTEM

public static final String DEFAULT_SYSTEM
The UUID of the single AspectWerkz system if only one definition is used.

See Also:
Constant Field Values

DEFINITION_FILE

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


DEFAULT_DEFINITION_FILE_NAME

public static final String DEFAULT_DEFINITION_FILE_NAME
The default name for the definition file.

See Also:
Constant Field Values
Constructor Detail

DefinitionLoader

public DefinitionLoader()
Method Detail

getDefinition

public static SystemDefinition getDefinition(ClassLoader loader,
                                             String uuid)
Loads the aspectwerkz definition from disk based on a specific UUID.

Only loads from the disk if the timestamp for the latest parsing is older than the timestamp for the weave model.

Used in the runtime (not transformation) process only.

Parameters:
loader - the current class loader
uuid - the uuid for the weave model to load
Returns:
the aspectwerkz definition

getDefaultDefinition

public static List getDefaultDefinition(ClassLoader loader)
Returns the default defintion.

Parameters:
loader -
Returns:
the default defintion

getDefaultDefinitionAspectNames

public static List getDefaultDefinitionAspectNames()
Returns the aspect names in the default definition.

Returns:
the aspect names in the default definition


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