Package org.apache.torque.generator.configuration

# Klasse AbstractConfigurationProvider

java.lang.Object
org.apache.torque.generator.configuration.AbstractConfigurationProvider

Alle implementierten Schnittstellen:
  `ConfigurationProvider`

Bekannte direkte Unterklassen:
  `ClasspathConfigurationProvider`, `DirectoryConfigurationProvider`, `JarConfigurationProvider`

public abstract class AbstractConfigurationProvider extends Object implements ConfigurationProvider
A base class for all ConfigurationProvider implementations.

Version:
  $Id$

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `AbstractConfigurationProvider(TorqueGeneratorPaths configurationPaths)`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `InputStream`
  `getControlConfigurationInputStream()`
  Creates a reader to access the control configuration.
  `protected abstract InputStream`
  `getInputStream(String name, String directory, String fileDescription)`
  `InputStream`
  `getOptionsInputStream(String name)`
  Creates a reader to access an options file.
  `InputStream`
  `getOutletConfigurationInputStream(String name)`
  Creates a reader to access the configuration for one outlet.
  `InputStream`
  `getResourceInputStream(String name)`
  Creates a reader to access a resource file.
  `InputStream`
  `getTemplateInputStream(String name)`
  Creates a reader to access a template.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Von Schnittstelle geerbte Methoden org.apache.torque.generator.configuration.ConfigurationProvider

  `getControlConfigurationLocation, getOutletConfigurationNames, getTemplateNames`

- ## Konstruktordetails

  - ### AbstractConfigurationProvider

    public AbstractConfigurationProvider(TorqueGeneratorPaths configurationPaths)
    Constructor.
    Parameter:
      `configurationPaths` - The internal directory structure of the Torque generator configuration files, not null.
    Löst aus:
      `NullPointerException` - if configurationPaths is null.

- ## Methodendetails

  - ### getControlConfigurationInputStream

    public InputStream getControlConfigurationInputStream() throws ConfigurationException
    Beschreibung aus Schnittstelle kopiert: `ConfigurationProvider`
    Creates a reader to access the control configuration. It is the callers responsibility to close the reader after use.
    Angegeben von:
      `getControlConfigurationInputStream` in Schnittstelle `ConfigurationProvider`
    Gibt zurück:
      a reader to access the control configuration, never null.
    Löst aus:
      `ConfigurationException` - if the reader can not be created.

  - ### getTemplateInputStream

    public InputStream getTemplateInputStream(String name) throws ConfigurationException
    Beschreibung aus Schnittstelle kopiert: `ConfigurationProvider`
    Creates a reader to access a template. It is the callers responsibility to close the reader after use.
    Angegeben von:
      `getTemplateInputStream` in Schnittstelle `ConfigurationProvider`
    Parameter:
      `name` - the name (==path to) of the template.
    Gibt zurück:
      a reader to access a template, never null.
    Löst aus:
      `ConfigurationException` - if the reader can not be created.

  - ### getOutletConfigurationInputStream

    public InputStream getOutletConfigurationInputStream(String name) throws ConfigurationException
    Beschreibung aus Schnittstelle kopiert: `ConfigurationProvider`
    Creates a reader to access the configuration for one outlet. It is the callers responsibility to close the reader after use.
    Angegeben von:
      `getOutletConfigurationInputStream` in Schnittstelle `ConfigurationProvider`
    Parameter:
      `name` - the name (==path to) of the outlet configuration.
    Gibt zurück:
      a reader to access the outlet configuration, never null.
    Löst aus:
      `ConfigurationException` - if the reader can not be created.

  - ### getResourceInputStream

    public InputStream getResourceInputStream(String name) throws ConfigurationException
    Beschreibung aus Schnittstelle kopiert: `ConfigurationProvider`
    Creates a reader to access a resource file. It is the callers responsibility to close the reader after use.
    Angegeben von:
      `getResourceInputStream` in Schnittstelle `ConfigurationProvider`
    Parameter:
      `name` - the path to of the resource file.
    Gibt zurück:
      a reader to access the options file, never null.
    Löst aus:
      `ConfigurationException` - if the reader can not be created.

  - ### getOptionsInputStream

    public InputStream getOptionsInputStream(String name) throws ConfigurationException
    Beschreibung aus Schnittstelle kopiert: `ConfigurationProvider`
    Creates a reader to access an options file. It is the callers responsibility to close the reader after use.
    Angegeben von:
      `getOptionsInputStream` in Schnittstelle `ConfigurationProvider`
    Parameter:
      `name` - the name (==path to) of the options file.
    Gibt zurück:
      a reader to access the options file, never null.
    Löst aus:
      `ConfigurationException` - if the reader can not be created.

  - ### getInputStream

    protected abstract InputStream getInputStream(String name, String directory, String fileDescription) throws ConfigurationException
    Parameter:
      `name` - input stream name
      `directory` - location
      `fileDescription` - describes the file
    Gibt zurück:
      an InputStream
    Löst aus:
      `ConfigurationException` - if unable to process