de.dante.extex.interpreter
Class InterpreterFactory

java.lang.Object
  extended byde.dante.util.framework.AbstractFactory
      extended byde.dante.extex.interpreter.InterpreterFactory
All Implemented Interfaces:
Configurable, LogEnabled, RegistrarObserver

public class InterpreterFactory
extends AbstractFactory

This class provides a factory for Interpreters. The configuration and the logger are passed to the new instance if they are present and required.

Version:
$Revision: 1.22 $
Author:
Gerd Neugebauer

Constructor Summary
InterpreterFactory(Configuration configuration, java.util.logging.Logger logger)
          Creates a new factory object.
 
Method Summary
 Interpreter newInstance(java.util.Properties properties, OutputStreamFactory outFactory)
          Get a instance for the interface Interpreter.
 
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

InterpreterFactory

public InterpreterFactory(Configuration configuration,
                          java.util.logging.Logger logger)
                   throws ConfigurationException
Creates a new factory object.

Parameters:
configuration - the configuration for this factory
logger - the logger
Throws:
ConfigurationException - in case of an error in the configuration.
Method Detail

newInstance

public Interpreter newInstance(java.util.Properties properties,
                               OutputStreamFactory outFactory)
                        throws ConfigurationException
Get a instance for the interface Interpreter.

Parameters:
properties - the properties
outFactory - the output stream factory
Returns:
a new instance for the interface Interpreter
Throws:
ConfigurationException - in case of an error in the configuration