org.apache.cayenne.conf
Class ConfigLoader

java.lang.Object
  extended by org.apache.cayenne.conf.ConfigLoader

public class ConfigLoader
extends java.lang.Object

Class that performs runtime loading of Cayenne configuration.

Author:
Andrei Adamchik

Field Summary
protected  ConfigLoaderDelegate delegate
           
protected  org.xml.sax.XMLReader parser
           
 
Constructor Summary
ConfigLoader(ConfigLoaderDelegate delegate)
          Creates new ConfigLoader.
 
Method Summary
 ConfigLoaderDelegate getDelegate()
          Returns the delegate.
 boolean loadDomains(java.io.InputStream in)
          Parses XML input, invoking delegate methods to interpret loaded XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

protected org.xml.sax.XMLReader parser

delegate

protected ConfigLoaderDelegate delegate
Constructor Detail

ConfigLoader

public ConfigLoader(ConfigLoaderDelegate delegate)
             throws java.lang.Exception
Creates new ConfigLoader.

Throws:
java.lang.Exception
Method Detail

getDelegate

public ConfigLoaderDelegate getDelegate()
Returns the delegate.

Returns:
ConfigLoaderDelegate

loadDomains

public boolean loadDomains(java.io.InputStream in)
Parses XML input, invoking delegate methods to interpret loaded XML.

Parameters:
in -
Returns:
boolean


Copyright © 2001-2006 Apache.org All Rights Reserved.