org.extex.engine.backend
Class BackendFactory

java.lang.Object
  extended by AbstractFactory
      extended by org.extex.engine.backend.BackendFactory

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

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 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