|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.util.framework.AbstractFactory
de.dante.extex.backend.documentWriter.DocumentWriterFactory
This is the factory to provide an instance of a document writer.
The class to be instantiated can implements one or more interfaces which trigger special actions:
Configurable
Configuration
is passed in with the interface method.
LogEnabled
Logger
is passed in with the interface method.
Localizable
Localizer
is passed in with the interface method.
SingleDocumentStream
OutputStream
is passed in with the interface method.
MultipleDocumentStream
OutputStreamFactory
is passed in with the interface method.
Constructor Summary | |
DocumentWriterFactory(Configuration configuration,
java.util.logging.Logger logger)
Creates a new object. |
Method Summary | |
DocumentWriter |
newInstance(java.lang.String type,
DocumentWriterOptions options,
OutputStreamFactory outFactory)
Provide a new instance of a document writer. |
Methods inherited from class de.dante.util.framework.AbstractFactory |
configure, configure, createInstance, createInstance, createInstance, createInstanceForConfiguration, createInstanceForConfiguration, createInstanceForConfiguration, enableLogging, enableLogging, getConfiguration, getLogger, reconnect, selectConfiguration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentWriterFactory(Configuration configuration, java.util.logging.Logger logger) throws ConfigurationException
configuration
- the configuration to use for the factorylogger
- the logger
ConfigurationException
- in case of an errorMethod Detail |
public DocumentWriter newInstance(java.lang.String type, DocumentWriterOptions options, OutputStreamFactory outFactory) throws DocumentWriterException, ConfigurationException
If the generated instance implements the interface SingleDocumentStream then the method setOutputStream of this interface is invoked.
If the generated instance implements the interface MultipleDocumentStream then the method setOutputStreamFactory of this interface is invoked.
type
- the type of the document writeroptions
- the dynamic access to the readable part of the contextoutFactory
- the factory for further output streams
DocumentWriterException
- in case of a problem
ConfigurationException
- in case of a configuration problem
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |