Package org.apache.torque.generator.configuration.outlet

# Klasse ReflectionOutletSaxHandlerFactory

java.lang.Object
org.apache.torque.generator.configuration.outlet.ReflectionOutletSaxHandlerFactory

Alle implementierten Schnittstellen:
  `UntypedOutletSaxHandlerFactory`

public class ReflectionOutletSaxHandlerFactory extends Object implements UntypedOutletSaxHandlerFactory
Creates outlet SAX handlers using reflection and a naming convention.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `ReflectionOutletSaxHandlerFactory()`
  Creates a ReflectionOutletSaxHandlerFactory with the default sax handler package.
  `ReflectionOutletSaxHandlerFactory(String saxHandlerPackage)`
  Creates a ReflectionOutletSaxHandlerFactory with the default sax handler package.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `boolean`
  `canHandle(String type, UnitDescriptor unitDescriptor)`
  Returns whether the handler can create OutletSaxHandlers for the given type.
  `protected String`
  `getFullyQualifiedHandlerClassName(String type)`
  Returns the fully qualified class name of the handler class for a given type.
  `final OutletSaxHandler`
  `getOutletSaxHandler(String outletType, QualifiedName outletName, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers)`
  Returns a OutletSaxHandler for reading the configuration of the outlet.
  `String`
  `getType()`
  Returns the outlet type which can be handled by the OutletSaxHandlers created by this factory.

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

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

- ## Konstruktordetails

  - ### ReflectionOutletSaxHandlerFactory

    public ReflectionOutletSaxHandlerFactory()
    Creates a ReflectionOutletSaxHandlerFactory with the default sax handler package.

  - ### ReflectionOutletSaxHandlerFactory

    public ReflectionOutletSaxHandlerFactory(String saxHandlerPackage)
    Creates a ReflectionOutletSaxHandlerFactory with the default sax handler package.
    Parameter:
      `saxHandlerPackage` - the package where the Sax handlers reside.

- ## Methodendetails

  - ### getType

    public String getType()
    Returns the outlet type which can be handled by the OutletSaxHandlers created by this factory.
    Gibt zurück:
      null.

  - ### getOutletSaxHandler

    public final OutletSaxHandler getOutletSaxHandler(String outletType, QualifiedName outletName, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) throws SAXException
    Returns a OutletSaxHandler for reading the configuration of the outlet. This implementation uses the provided name as outlet name.
    Angegeben von:
      `getOutletSaxHandler` in Schnittstelle `UntypedOutletSaxHandlerFactory`
    Parameter:
      `outletType` - the type of the outlet, not null.
      `outletName` - the name for the outlet which configuration will be read in by the generated SaxHandlerFactory, or null if the name of the outlet should be determined from the parsed XML.
      `configurationProvider` - The access object for the configuration files, not null.
      `unitDescriptor` - The description of the generation unit, not null.
      `configurationHandlers` - the available configuration handlers, not null.
    Gibt zurück:
      a new VelocityOutletSaxHandler.
    Löst aus:
      `SAXException` - if the SAX Handler for the outlet can not be created from the given XML element.

  - ### canHandle

    public boolean canHandle(String type, UnitDescriptor unitDescriptor)
    Beschreibung aus Schnittstelle kopiert: `UntypedOutletSaxHandlerFactory`
    Returns whether the handler can create OutletSaxHandlers for the given type.
    Angegeben von:
      `canHandle` in Schnittstelle `UntypedOutletSaxHandlerFactory`
    Parameter:
      `type` - the type to check.
      `unitDescriptor` - The description of the generation unit, not null.
    Gibt zurück:
      true if the type is supported, false if not.

  - ### getFullyQualifiedHandlerClassName

    protected String getFullyQualifiedHandlerClassName(String type)
    Returns the fully qualified class name of the handler class for a given type.
    Parameter:
      `type` - the type to determine the handler for.
    Gibt zurück:
      the fully qualified class name, not null.