|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.definition.DefinitionLoader
Handles the loading of the definition in various ways and formats.
| Field Summary | |
static java.lang.String |
DEFAULT_DEFINITION_FILE_NAME
The default name for the definition file. |
static java.lang.String |
DEFAULT_SYSTEM
The UUID of the single AspectWerkz system if only one definition is used. |
static java.lang.String |
DEFINITION_FILE
The path to the definition file. |
| Constructor Summary | |
DefinitionLoader()
|
|
| Method Summary | |
static java.util.List |
createDefinition(org.dom4j.Document document)
Creates, caches and returns new definition. |
static AspectWerkzDefinition |
getDefinition(java.lang.String uuid)
Loads the aspectwerkz definition from disk based on a specific UUID. |
static java.io.InputStream |
getDefinitionInputStream()
Returns an input stream to the definition if found on classpath. |
static java.util.List |
getDefinitionsForTransformation()
Loads the aspectwerkz definition from disk. |
static AspectWerkzDefinition |
loadAndMergeDefinitions(java.lang.ClassLoader loader)
Loads and merges the definition. |
static java.util.List |
loadDefaultDefinitionsFromFile(boolean isDirty)
Returns the definitions. |
static java.util.List |
loadDefinitionsAsResource()
Loads the definitions from disk. |
static java.util.List |
loadDefinitionsFromDocument(org.dom4j.Document document)
Returns the definition. |
static java.util.List |
loadDefinitionsFromFile(java.lang.String definitionFile)
Returns the definitions. |
static java.util.List |
loadDefinitionsFromFile(java.lang.String definitionFile,
boolean isDirty)
Returns the definitions. |
static java.util.List |
loadDefinitionsFromStream(java.io.InputStream stream)
Returns the definitions. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_SYSTEM
public static final java.lang.String DEFINITION_FILE
public static final java.lang.String DEFAULT_DEFINITION_FILE_NAME
| Constructor Detail |
public DefinitionLoader()
| Method Detail |
public static java.util.List createDefinition(org.dom4j.Document document)
document - the DOM document containing the definition
public static java.util.List getDefinitionsForTransformation()
public static AspectWerkzDefinition getDefinition(java.lang.String uuid)
uuid - the uuid for the weave model to load (null is allowed if only XML definition is used)
public static java.util.List loadDefinitionsAsResource()
public static java.util.List loadDefaultDefinitionsFromFile(boolean isDirty)
isDirty - flag to mark the the defintion as updated or not
public static java.util.List loadDefinitionsFromFile(java.lang.String definitionFile)
definitionFile - the definition file
public static java.io.InputStream getDefinitionInputStream()
public static java.util.List loadDefinitionsFromFile(java.lang.String definitionFile,
boolean isDirty)
definitionFile - the definition fileisDirty - flag to mark the the defintion as updated or not
public static java.util.List loadDefinitionsFromStream(java.io.InputStream stream)
stream - the stream containing the definition file
public static java.util.List loadDefinitionsFromDocument(org.dom4j.Document document)
document - the DOM document containing the definition file
public static AspectWerkzDefinition loadAndMergeDefinitions(java.lang.ClassLoader loader)
loader - the class loader to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||