raccoon.core.manager.thin
Class ComponentLoader

java.lang.Object
  extended by raccoon.core.badhnati.castor.CastorParser
      extended by raccoon.core.manager.thin.ComponentLoader

public class ComponentLoader
extends CastorParser

Utility service that reads an XML stream and returns the corresponding component descriptor.

Since:
Raccoon v0.7
Version:
$Id: ComponentLoader.java,v 1.1 2004/08/08 20:19:17 crouvrais Exp $
Author:
Cedric ROUVRAIS

Field Summary
 
Fields inherited from class raccoon.core.badhnati.castor.CastorParser
DEFAULT_MAPPING_FILE_NAME, mStdResolver
 
Constructor Summary
ComponentLoader()
           
 
Method Summary
 Component loadComponent(java.net.URL pComponentFile)
          Loads the component.
 void marshalComponent(Component pComponent, java.io.OutputStream pOutputStream)
           
 
Methods inherited from class raccoon.core.badhnati.castor.CastorParser
marshal, marshal, marshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentLoader

public ComponentLoader()
Method Detail

loadComponent

public Component loadComponent(java.net.URL pComponentFile)
                        throws RaccoonException
Loads the component.

Parameters:
pComponentFile - the XML Stream containing the description of the component.
Returns:
the component descriptor.
Throws:
RaccoonException - if the XML Stream is corrupted or invalid.

marshalComponent

public void marshalComponent(Component pComponent,
                             java.io.OutputStream pOutputStream)
                      throws RaccoonException
Throws:
RaccoonException


Copyright null null. All Rights Reserved.