de.dante.extex.backend
Class BackendFactory
java.lang.Object
de.dante.util.framework.AbstractFactory
de.dante.extex.backend.BackendFactory
- All Implemented Interfaces:
- Configurable, LogEnabled, RegistrarObserver
- public class BackendFactory
- extends AbstractFactory
This class provides a factory for the back-end.
The class to be instantiated can implements one or more interfaces which
trigger special actions:
Configurable
-
If this interface is implemented then a
Configuration
is passed in with the interface method.
LogEnabled
-
If this interface is implemented then a
Logger
is passed in with the interface method.
Localizable
-
If this interface is implemented then a
Localizer
is passed in with the interface method.
ResourceConsumer
-
If this interface is implemented then a
ResourceFinder
is passed in with the interface method.
PropertyConfigurable
-
If this interface is implemented then a
Properties
instance
is passed in with the interface method.
ColorAware
-
If this interface is implemented then a
ColorConverter
instance
is passed in with the interface method.
- Version:
- $Revision: 1.4 $
- Author:
- Gerd Neugebauer
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 |
BackendFactory
public BackendFactory(Configuration config,
java.util.logging.Logger logger)
throws ConfigurationException
- Creates a new object.
- Parameters:
config
- the configurationlogger
- the logger
- Throws:
ConfigurationException
- in case of an configuration error
newInstance
public BackendDriver newInstance(java.lang.String type,
DocumentWriterOptions options,
OutputStreamFactory outFactory,
ResourceFinder finder,
java.util.Properties properties,
java.lang.String creator,
FontFactory fontFactory,
ColorConverter colorConverter)
throws DocumentWriterException,
ConfigurationException
- Acquire an instance of a back-end driver.
- Parameters:
type
- the type of the document writeroptions
- the optionsoutFactory
- the output stream factoryfinder
- the resource finderproperties
- the propertiescreator
- the creator stringcolorConverter
- the color converter
- Returns:
- the new instance
- Throws:
DocumentWriterException
- in case of an error
ConfigurationException
- in case of an error in the configuration