Class FileFactoryConfiguration
java.lang.Object
org.apache.velocity.tools.config.Configuration
org.apache.velocity.tools.config.CompoundConfiguration<ToolboxConfiguration>
org.apache.velocity.tools.config.FactoryConfiguration
org.apache.velocity.tools.config.FileFactoryConfiguration
- All Implemented Interfaces:
Comparable<Configuration>
- Direct Known Subclasses:
PropertiesFactoryConfiguration, XmlFactoryConfiguration
Provides support for reading a configuration file from a specified path.
- Version:
- $Id: XmlFactoryConfiguration.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FactoryConfiguration
addConfiguration, addData, addSource, addToolbox, createFactory, equals, getData, getData, getData, getSource, getSources, getToolbox, getToolboxes, hasData, hashCode, removeData, removeToolbox, setData, setSource, setToolboxes, toString, toString, validateMethods inherited from class CompoundConfiguration
addChild, addChildren, addConfiguration, appendChildren, getChild, getChildren, hasChildren, removeChild, setChildrenMethods inherited from class Configuration
addConfiguration, addProperty, appendProperties, compareTo, getProperties, getProperty, getPropertyMap, hasProperties, removeProperty, removeProperty, setProperties, setProperty, setPropertyMap
-
Constructor Details
-
FileFactoryConfiguration
-
-
Method Details
-
readImpl
Reads an configuration from an
URL.- Parameters:
url- the InputStream to read from- Throws:
IOException- if a problem occurs
-
read
Reads a configuration file from the specified file path and sets up the configuration from that. If the file does not exist, a
ResourceNotFoundExceptionwill be thrown.- Parameters:
path- the path to the file to be read from
-
read
-
read
-
read
-
read
-
findURL
-
read
-