org.compass.core.config.builder
Class AbstractInputStreamConfigurationBuilder

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

public abstract class AbstractInputStreamConfigurationBuilder
extends Object
implements ConfigurationBuilder

Author:
kimchy

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
AbstractInputStreamConfigurationBuilder()
           
 
Method Summary
 void configure(File file, CompassConfiguration config)
           
 void configure(String resource, CompassConfiguration config)
           
 void configure(URL url, CompassConfiguration config)
           
protected abstract  void doConfigure(InputStream is, String resourceName, CompassConfiguration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

AbstractInputStreamConfigurationBuilder

public AbstractInputStreamConfigurationBuilder()
Method Detail

configure

public void configure(String resource,
                      CompassConfiguration config)
               throws ConfigurationException
Specified by:
configure in interface ConfigurationBuilder
Throws:
ConfigurationException

configure

public void configure(URL url,
                      CompassConfiguration config)
               throws ConfigurationException
Specified by:
configure in interface ConfigurationBuilder
Throws:
ConfigurationException

configure

public void configure(File file,
                      CompassConfiguration config)
               throws ConfigurationException
Specified by:
configure in interface ConfigurationBuilder
Throws:
ConfigurationException

doConfigure

protected abstract void doConfigure(InputStream is,
                                    String resourceName,
                                    CompassConfiguration config)
                             throws ConfigurationException
Throws:
ConfigurationException


Copyright (c) 2004-2008 The Compass Project.