org.extex.engine.backend
Class BackendFactory
java.lang.Object
org.extex.framework.AbstractFactory
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
| 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 |
BackendFactory
public BackendFactory()
- Creates a new object.
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 writeroutFactory - the output stream factoryfinder - the resource finderproperties - the propertiescreator - the creator stringfontFactory - the font factorycolorConverter - 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