org.apache.torque.generator.configuration.outlet
Class JavaOutletSaxHandlerFactory

java.lang.Object
  extended by org.apache.torque.generator.configuration.outlet.JavaOutletSaxHandlerFactory
All Implemented Interfaces:
TypedOutletSaxHandlerFactory

public class JavaOutletSaxHandlerFactory
extends Object
implements TypedOutletSaxHandlerFactory

Creates Java outlet SAX handlers.


Constructor Summary
JavaOutletSaxHandlerFactory()
           
 
Method Summary
 OutletSaxHandler getOutletSaxHandler(QualifiedName outletName, ConfigurationProvider configurationProvider, ProjectPaths projectPaths, ConfigurationHandlers configurationHandlers)
          Returns a JavaOutletSaxHandler for reading the configuration of Java outlets.
 String getType()
          Returns the outlet type which can be handled by the OutletSaxHandlers created by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaOutletSaxHandlerFactory

public JavaOutletSaxHandlerFactory()
Method Detail

getType

public String getType()
Returns the outlet type which can be handled by the OutletSaxHandlers created by this factory.

Specified by:
getType in interface TypedOutletSaxHandlerFactory
Returns:
"javaOutlet".

getOutletSaxHandler

public final OutletSaxHandler getOutletSaxHandler(QualifiedName outletName,
                                                  ConfigurationProvider configurationProvider,
                                                  ProjectPaths projectPaths,
                                                  ConfigurationHandlers configurationHandlers)
                                           throws SAXException
Returns a JavaOutletSaxHandler for reading the configuration of Java outlets. This implementation uses the provided name as outlet name.

Specified by:
getOutletSaxHandler in interface TypedOutletSaxHandlerFactory
Parameters:
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.
projectPaths - The paths of the surrounding project, not null.
configurationHandlers - the available configuration handlers, not null.
Returns:
a new JavaOutletSaxHandler.
Throws:
SAXException - if the SAX Handler for the outlet can not be created from the given XML element.


Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.