org.codehaus.aspectwerkz.definition
Class DocumentParser

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

public class DocumentParser
extends Object

Parses the XML definition using dom4j.

Author:
Jonas Bonér , Alexandre Vasseur

Constructor Summary
DocumentParser()
           
 
Method Summary
static List parse(ClassLoader loader, org.dom4j.Document document)
          Parses the definition DOM document.
static List parseAspectClassNames(org.dom4j.Document document)
          Parses aspect class names.
static void parsePrepareElements(org.dom4j.Element root, SystemDefinition definition, String packageName)
          Parses the prepare elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentParser

public DocumentParser()
Method Detail

parseAspectClassNames

public static List parseAspectClassNames(org.dom4j.Document document)
Parses aspect class names.

Parameters:
document - the defintion as a document
Returns:
the aspect class names

parse

public static List parse(ClassLoader loader,
                         org.dom4j.Document document)
Parses the definition DOM document.

Parameters:
loader - the current class loader
document - the defintion as a document
Returns:
the definitions

parsePrepareElements

public static void parsePrepareElements(org.dom4j.Element root,
                                        SystemDefinition definition,
                                        String packageName)
Parses the prepare elements.

Parameters:
root - the root element
definition - the definition object
packageName - the base package name


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