Package org.apache.stylebook
Class BasicEngine
java.lang.Object
org.apache.stylebook.BasicEngine
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionBasicEngine
(String parser, URL conf, Logger logger) Create a new instance of this Engine. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Report a debug message to the user.Return the Parser instance owned by this Engine.getPrinter
(String name) Return a Printer instance associated with the specified name.getProcessor
(String name) Return a Processor instance associated with the specified name.getProducer
(String name) Return a Producer instance associated with the specified name.void
Report a log message to the user.
-
Constructor Details
-
BasicEngine
Create a new instance of this Engine.- Parameters:
parser
- The name of the Parser class used to read configuration.logger
- The Logger used by this Engine.cont
- The SystemID of the configuration file.- Throws:
InitializationException
-
-
Method Details
-
getParser
Return the Parser instance owned by this Engine. -
getProducer
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
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
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
Report a debug message to the user. -
log
Report a log message to the user.
-