Tuscany Core

org.apache.tuscany.core.loader.assembly
Class ModuleLoader

java.lang.Object
  extended by org.apache.tuscany.core.loader.assembly.AbstractLoader
      extended by org.apache.tuscany.core.loader.assembly.CompositeLoader
          extended by org.apache.tuscany.core.loader.assembly.ModuleLoader
All Implemented Interfaces:
StAXElementLoader

public class ModuleLoader
extends CompositeLoader

Version:
$Rev$ $Date$

Field Summary
 
Fields inherited from class org.apache.tuscany.core.loader.assembly.AbstractLoader
factory, registry
 
Constructor Summary
ModuleLoader()
           
 
Method Summary
 QName getXMLType()
          Returns the QName of the element that this implementation handles.
 Module load(javax.xml.stream.XMLStreamReader reader, LoaderContext loaderContext)
          Build the model object for an element in an XML stream.
 
Methods inherited from class org.apache.tuscany.core.loader.assembly.CompositeLoader
loadComposite
 
Methods inherited from class org.apache.tuscany.core.loader.assembly.AbstractLoader
setFactory, setRegistry, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleLoader

public ModuleLoader()
Method Detail

getXMLType

public QName getXMLType()
Description copied from class: AbstractLoader
Returns the QName of the element that this implementation handles.

Specified by:
getXMLType in class AbstractLoader
Returns:
the QName of the element that this implementation handles

load

public Module load(javax.xml.stream.XMLStreamReader reader,
                   LoaderContext loaderContext)
            throws javax.xml.stream.XMLStreamException,
                   ConfigurationLoadException
Description copied from interface: StAXElementLoader
Build the model object for an element in an XML stream. When this method returns the stream will be positioned on the corresponding END_ELEMENT.

Parameters:
reader - the XML stream reader positioned on the applicable START_ELEMENT
loaderContext - the context for the load operation
Returns:
the model object for that element
Throws:
javax.xml.stream.XMLStreamException
ConfigurationLoadException

Tuscany Core

-