public class CopyOutletSaxHandlerFactory extends Object implements TypedOutletSaxHandlerFactory
| Constructor and Description |
|---|
CopyOutletSaxHandlerFactory() |
| Modifier and Type | Method and Description |
|---|---|
Outlet |
createOutletForTemplate(String templatePath,
ConfigurationProvider configurationProvider)
Creates an outlet for a template with the given file name.
|
OutletSaxHandler |
getOutletSaxHandler(QualifiedName outletName,
ConfigurationProvider configurationProvider,
UnitDescriptor unitDescriptor,
ConfigurationHandlers configurationHandlers)
Returns a JavaOutletSaxHandler for reading the configuration of
Java outlets.
|
Collection<String> |
getTemplatesFilenameExtensionsForScan()
Returns the filename extensions for templates which define outlets
of this type.
|
String |
getType()
Returns the outlet type which can be handled by the
OutletSaxHandlers created by this factory.
|
public String getType()
getType in interface TypedOutletSaxHandlerFactorypublic Collection<String> getTemplatesFilenameExtensionsForScan()
getTemplatesFilenameExtensionsForScan in interface TypedOutletSaxHandlerFactorypublic Outlet createOutletForTemplate(String templatePath, ConfigurationProvider configurationProvider)
createOutletForTemplate in interface TypedOutletSaxHandlerFactorytemplatePath - the path to the template,
relative to the templates directory, not null.configurationProvider - the configuration provider.UnsupportedOperationException - always.public final OutletSaxHandler getOutletSaxHandler(QualifiedName outletName, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) throws SAXException
getOutletSaxHandler in interface TypedOutletSaxHandlerFactoryoutletName - 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.SAXException - if the SAX Handler for the outlet can
not be created from the given XML element.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.