类 FileFactoryConfiguration

所有已实现的接口:
Comparable<Configuration>
直接已知子类:
PropertiesFactoryConfiguration, XmlFactoryConfiguration

public abstract class FileFactoryConfiguration extends FactoryConfiguration
Provides support for reading a configuration file from a specified path, This frees the user from having to obtain an InputStream themselves.
版本:
$Id: XmlFactoryConfiguration.java 511959 2007-02-26 19:24:39Z nbubna $
作者:
Nathan Bubna
  • 构造器详细资料

    • FileFactoryConfiguration

      protected FileFactoryConfiguration(Class clazz, String id)
  • 方法详细资料

    • read

      public abstract void read(InputStream input) throws IOException

      Reads an configuration from an InputStream.

      参数:
      input - the InputStream to read from
      抛出:
      IOException
    • read

      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 from
    • read

      public void read(URL url)
    • read

      public void read(String path, boolean required)
    • read

      public void read(URL url, boolean required)
    • read

      public void read(String path, boolean required, org.apache.velocity.runtime.log.Log log)
    • findURL

      protected URL findURL(String path)
    • read

      protected void read(URL url, boolean required, org.apache.velocity.runtime.log.Log log)
    • read

      protected void read(Object source, InputStream inputStream, boolean required, org.apache.velocity.runtime.log.Log log)