|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.stylebook.BasicEngine
public class BasicEngine
Constructor Summary | |
---|---|
BasicEngine(java.lang.String parser,
java.net.URL conf,
Logger logger)
Create a new instance of this Engine. |
Method Summary | |
---|---|
void |
debug(java.lang.Object source,
java.lang.String msg)
Report a debug message to the user. |
Parser |
getParser()
Return the Parser instance owned by this Engine. |
Printer |
getPrinter(java.lang.String name)
Return a Printer instance associated with the specified name. |
Processor |
getProcessor(java.lang.String name)
Return a Processor instance associated with the specified name. |
Producer |
getProducer(java.lang.String name)
Return a Producer instance associated with the specified name. |
void |
log(java.lang.Object source,
java.lang.String msg)
Report a log message to the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicEngine(java.lang.String parser, java.net.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
Method Detail |
---|
public Parser getParser()
getParser
in interface Engine
public Producer getProducer(java.lang.String name)
getProducer
in interface Engine
name
- A non-null String representing the Producer name.
public Processor getProcessor(java.lang.String name)
getProcessor
in interface Engine
name
- A non-null String representing the Processor name.
public Printer getPrinter(java.lang.String name)
getPrinter
in interface Engine
name
- A non-null String representing the Printer name.
public void debug(java.lang.Object source, java.lang.String msg)
debug
in interface Engine
msg
- The debug message to report.public void log(java.lang.Object source, java.lang.String msg)
log
in interface Engine
msg
- The log message to report.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |