public class BasicEngine extends Object implements Engine
Constructor and Description |
---|
BasicEngine(String parser,
URL conf,
Logger logger)
Create a new instance of this Engine.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(Object source,
String msg)
Report a debug message to the user.
|
Parser |
getParser()
Return the Parser instance owned by this Engine.
|
Printer |
getPrinter(String name)
Return a Printer instance associated with the specified name.
|
Processor |
getProcessor(String name)
Return a Processor instance associated with the specified name.
|
Producer |
getProducer(String name)
Return a Producer instance associated with the specified name.
|
void |
log(Object source,
String msg)
Report a log message to the user.
|
public BasicEngine(String parser, URL conf, Logger logger) throws InitializationException
parser
- The name of the Parser class used to read configuration.cont
- The SystemID of the configuration file.logger
- The Logger used by this Engine.InitializationException
public Parser getParser()
public Producer getProducer(String name)
getProducer
in interface Engine
name
- A non-null String representing the Producer name.public Processor getProcessor(String name)
getProcessor
in interface Engine
name
- A non-null String representing the Processor name.public Printer getPrinter(String name)
getPrinter
in interface Engine
name
- A non-null String representing the Printer name.