|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.configuration.outlet.ReflectionOutletSaxHandlerFactory
public class ReflectionOutletSaxHandlerFactory
Creates outlet SAX handlers using reflection and a naming convention.
| Constructor Summary | |
|---|---|
ReflectionOutletSaxHandlerFactory()
Creates a ReflectionOutletSaxHandlerFactory with the default sax handler package. |
|
ReflectionOutletSaxHandlerFactory(String saxHandlerPackage)
Creates a ReflectionOutletSaxHandlerFactory with the default sax handler package. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(String type)
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. |
OutletSaxHandler |
getOutletSaxHandler(String outletType,
QualifiedName outletName,
ConfigurationProvider configurationProvider,
ProjectPaths projectPaths,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionOutletSaxHandlerFactory()
public ReflectionOutletSaxHandlerFactory(String saxHandlerPackage)
saxHandlerPackage - the package where the Sax handlers reside.| Method Detail |
|---|
public String getType()
public final OutletSaxHandler getOutletSaxHandler(String outletType,
QualifiedName outletName,
ConfigurationProvider configurationProvider,
ProjectPaths projectPaths,
ConfigurationHandlers configurationHandlers)
throws SAXException
getOutletSaxHandler in interface UntypedOutletSaxHandlerFactoryoutletType - 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.projectPaths - The paths of the surrounding project, not null.configurationHandlers - the available configuration handlers,
not null.
SAXException - if the SAX Handler for the outlet can
not be created from the given XML element.public boolean canHandle(String type)
UntypedOutletSaxHandlerFactory
canHandle in interface UntypedOutletSaxHandlerFactoryprotected String getFullyQualifiedHandlerClassName(String type)
type - the type to determine the handler for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||