org.compass.core.config.builder
Class AbstractXmlConfigurationBuilder

java.lang.Object
  extended by org.compass.core.config.builder.AbstractInputStreamConfigurationBuilder
      extended by org.compass.core.config.builder.AbstractXmlConfigurationBuilder
All Implemented Interfaces:
ConfigurationBuilder
Direct Known Subclasses:
DTDConfigurationBuilder, SchemaConfigurationBuilder

public abstract class AbstractXmlConfigurationBuilder
extends AbstractInputStreamConfigurationBuilder

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.config.builder.AbstractInputStreamConfigurationBuilder
log
 
Constructor Summary
AbstractXmlConfigurationBuilder()
           
 
Method Summary
protected  DocumentBuilder createDocumentBuilder(DocumentBuilderFactory factory)
           
protected  DocumentBuilderFactory createDocumentBuilderFactory()
           
protected  void doConfigure(InputStream is, String resourceName, CompassConfiguration config)
           
protected abstract  EntityResolver doGetEntityResolver()
           
protected  ErrorHandler doGetErrorHandler()
           
protected abstract  void doProcess(Document doc, CompassConfiguration config)
           
 
Methods inherited from class org.compass.core.config.builder.AbstractInputStreamConfigurationBuilder
configure, configure, configure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXmlConfigurationBuilder

public AbstractXmlConfigurationBuilder()
Method Detail

doConfigure

protected void doConfigure(InputStream is,
                           String resourceName,
                           CompassConfiguration config)
                    throws ConfigurationException
Specified by:
doConfigure in class AbstractInputStreamConfigurationBuilder
Throws:
ConfigurationException

doProcess

protected abstract void doProcess(Document doc,
                                  CompassConfiguration config)
                           throws ConfigurationException
Throws:
ConfigurationException

createDocumentBuilderFactory

protected DocumentBuilderFactory createDocumentBuilderFactory()
                                                       throws ParserConfigurationException
Throws:
ParserConfigurationException

createDocumentBuilder

protected DocumentBuilder createDocumentBuilder(DocumentBuilderFactory factory)
                                         throws ParserConfigurationException
Throws:
ParserConfigurationException

doGetErrorHandler

protected ErrorHandler doGetErrorHandler()

doGetEntityResolver

protected abstract EntityResolver doGetEntityResolver()


Copyright (c) 2004-2008 The Compass Project.