org.extex.engine.backend
Class BackendFactory

java.lang.Object
  extended by org.extex.framework.AbstractFactory
      extended by org.extex.engine.backend.BackendFactory
All Implemented Interfaces:
Configurable, LogEnabled, RegistrarObserver, ResourceAware

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.
ResourceAware
If this interface is implemented then a ResourceFinder is passed in with the interface method.
PropertyAware
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: 4728 $
Author:
Gerd Neugebauer

Field Summary
 
Fields inherited from class org.extex.framework.AbstractFactory
CLASS_ATTRIBUTE, DEFAULT_ATTRIBUTE, SELECT_ATTRIBUTE
 
Constructor Summary
BackendFactory()
          Creates a new object.
 
Method Summary
 BackendDriver newInstance(java.lang.String type, OutputStreamFactory outFactory, ResourceFinder finder, java.util.Properties properties, java.lang.String creator, CoreFontFactory fontFactory, ColorConverter colorConverter)
          Acquire an instance of a back-end driver.
 void setOptions(DocumentWriterOptions options)
          Setter for options.
 
Methods inherited from class org.extex.framework.AbstractFactory
configure, configure, createInstance, createInstance, createInstance, createInstance, createInstanceForConfiguration, createInstanceForConfiguration, createInstanceForConfiguration, enableLogging, enableLogging, getConfiguration, getLogger, getResourceFinder, reconnect, selectConfiguration, setResourceFinder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackendFactory

public BackendFactory()
Creates a new object.

Method Detail

newInstance

public BackendDriver newInstance(java.lang.String type,
                                 OutputStreamFactory outFactory,
                                 ResourceFinder finder,
                                 java.util.Properties properties,
                                 java.lang.String creator,
                                 CoreFontFactory fontFactory,
                                 ColorConverter colorConverter)
                          throws DocumentWriterException
Acquire an instance of a back-end driver.

Parameters:
type - the type of the document writer
outFactory - the output stream factory
finder - the resource finder
properties - the properties
creator - the creator string
fontFactory - the font factory
colorConverter - the color converter
Returns:
the new instance
Throws:
DocumentWriterException - in case of an error
ConfigurationException - in case of an error in the configuration

setOptions

public void setOptions(DocumentWriterOptions options)
Setter for options.

Parameters:
options - the options to set