public abstract class FileFactoryConfiguration extends FactoryConfiguration
Modifier | Constructor and Description |
---|---|
protected |
FileFactoryConfiguration(java.lang.Class clazz,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
protected java.net.URL |
findURL(java.lang.String path) |
abstract void |
read(java.io.InputStream input)
Reads an configuration from an
InputStream . |
protected void |
read(java.lang.Object source,
java.io.InputStream inputStream,
boolean required,
Log log) |
void |
read(java.lang.String path)
Reads a configuration file from the specified file path
and sets up the configuration from that.
|
void |
read(java.lang.String path,
boolean required) |
void |
read(java.lang.String path,
boolean required,
Log log) |
void |
read(java.net.URL url) |
void |
read(java.net.URL url,
boolean required) |
protected void |
read(java.net.URL url,
boolean required,
Log log) |
addConfiguration, addData, addSource, addToolbox, createFactory, equals, getData, getData, getData, getSource, getSources, getToolbox, getToolboxes, hasData, hashCode, removeData, removeToolbox, setData, setSource, setToolboxes, toString, toString, validate
addChild, addConfiguration, appendChildren, getChild, getChildren, hasChildren, removeChild, setChildren
addConfiguration, addProperty, appendProperties, compareTo, getProperties, getProperty, getPropertyMap, hasProperties, removeProperty, removeProperty, setProperties, setProperty, setPropertyMap
protected FileFactoryConfiguration(java.lang.Class clazz, java.lang.String id)
public abstract void read(java.io.InputStream input) throws java.io.IOException
Reads an configuration from an InputStream
.
input
- the InputStream to read fromjava.io.IOException
public void read(java.lang.String path)
Reads a configuration file from the specified file path
and sets up the configuration from that. If the file does not
exist, a ResourceNotFoundException
will be thrown.
path
- the path to the file to be read frompublic void read(java.net.URL url)
public void read(java.lang.String path, boolean required)
public void read(java.net.URL url, boolean required)
public void read(java.lang.String path, boolean required, Log log)
protected java.net.URL findURL(java.lang.String path)
protected void read(java.net.URL url, boolean required, Log log)
protected void read(java.lang.Object source, java.io.InputStream inputStream, boolean required, Log log)
Copyright (c) 2003-2007 Apache Software Foundation