Class BasicEngine

java.lang.Object
org.apache.stylebook.BasicEngine
All Implemented Interfaces:
Engine

public class BasicEngine extends 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 Details

    • BasicEngine

      public BasicEngine(String parser, 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.
      logger - The Logger used by this Engine.
      cont - The SystemID of the configuration file.
      Throws:
      InitializationException
  • Method Details

    • getParser

      public Parser getParser()
      Return the Parser instance owned by this Engine.
      Specified by:
      getParser in interface Engine
      Returns:
      A non-null Parser instance.
    • getProducer

      public Producer getProducer(String name)
      Return a Producer instance associated with the specified name.
      Specified by:
      getProducer in interface Engine
      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(String name)
      Return a Processor instance associated with the specified name.
      Specified by:
      getProcessor in interface Engine
      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(String name)
      Return a Printer instance associated with the specified name.
      Specified by:
      getPrinter in interface Engine
      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(Object source, String msg)
      Report a debug message to the user.
      Specified by:
      debug in interface Engine
      Parameters:
      msg - The debug message to report.
    • log

      public void log(Object source, String msg)
      Report a log message to the user.
      Specified by:
      log in interface Engine
      Parameters:
      msg - The log message to report.