Package org.apache.stylebook
Class BasicEngine
- java.lang.Object
-
- org.apache.stylebook.BasicEngine
-
- All Implemented Interfaces:
Engine
public class BasicEngine extends java.lang.Object implements Engine
- Version:
- CVS $Revision: 313202 $ $Date: 1999-11-30 12:28:55 +0000 (Tue, 30 Nov 1999) $
- Author:
- Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.
-
-
Constructor Summary
Constructors Constructor Description BasicEngine(java.lang.String parser, java.net.URL conf, Logger logger)
Create a new instance of this Engine.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
BasicEngine
public BasicEngine(java.lang.String parser, java.net.URL conf, Logger logger) throws InitializationException
Create a new instance of this Engine.- Parameters:
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.- Throws:
InitializationException
-
-
Method Detail
-
getParser
public Parser getParser()
Return the Parser instance owned by this Engine.
-
getProducer
public Producer getProducer(java.lang.String name)
Return a Producer instance associated with the specified name.- Specified by:
getProducer
in interfaceEngine
- Parameters:
name
- A non-null String representing the Producer name.- Returns:
- A non-null Producer instance or null if no Producer is associated with the specified name.
-
getProcessor
public Processor getProcessor(java.lang.String name)
Return a Processor instance associated with the specified name.- Specified by:
getProcessor
in interfaceEngine
- Parameters:
name
- A non-null String representing the Processor name.- Returns:
- A non-null Processor instance or null if no Processor is associated with the specified name.
-
getPrinter
public Printer getPrinter(java.lang.String name)
Return a Printer instance associated with the specified name.- Specified by:
getPrinter
in interfaceEngine
- Parameters:
name
- A non-null String representing the Printer name.- Returns:
- A non-null Printer instance or null if no Printer is associated with the specified name.
-
debug
public void debug(java.lang.Object source, java.lang.String msg)
Report a debug message to the user.
-
-