public abstract class FileFactoryConfiguration extends FactoryConfiguration
Modifier | Constructor and Description |
---|---|
protected |
FileFactoryConfiguration(Class clazz,
String id) |
Modifier and Type | Method and Description |
---|---|
protected URL |
findURL(String path) |
void |
read(String path)
Reads a configuration file from the specified file path
and sets up the configuration from that.
|
void |
read(String path,
boolean required) |
void |
read(String path,
boolean required,
org.slf4j.Logger log) |
void |
read(URL url) |
void |
read(URL url,
boolean required) |
protected void |
read(URL url,
boolean required,
org.slf4j.Logger log) |
protected abstract void |
readImpl(URL url)
Reads an configuration from an
URL . |
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 abstract void readImpl(URL url) throws IOException
Reads an configuration from an URL
.
url
- the InputStream to read fromIOException
- if a problem occurspublic void read(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(URL url)
public void read(String path, boolean required)
public void read(URL url, boolean required)
public void read(String path, boolean required, org.slf4j.Logger log)
protected void read(URL url, boolean required, org.slf4j.Logger log)
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.