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) |
abstract void |
read(InputStream input)
Reads an configuration from an
InputStream . |
protected void |
read(Object source,
InputStream inputStream,
boolean required,
org.apache.velocity.runtime.log.Log log) |
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.apache.velocity.runtime.log.Log log) |
void |
read(URL url) |
void |
read(URL url,
boolean required) |
protected void |
read(URL url,
boolean required,
org.apache.velocity.runtime.log.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
public abstract void read(InputStream input) throws IOException
Reads an configuration from an InputStream
.
input
- the InputStream to read fromIOException
public 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.apache.velocity.runtime.log.Log log)
protected void read(URL url, boolean required, org.apache.velocity.runtime.log.Log log)
protected void read(Object source, InputStream inputStream, boolean required, org.apache.velocity.runtime.log.Log log)
Copyright © 2002–2021 Apache Software Foundation. All rights reserved.