org.apache.stylebook
Class AbstractComponent

java.lang.Object
  extended by org.apache.stylebook.AbstractComponent
All Implemented Interfaces:
Component
Direct Known Subclasses:
AbstractParser, ContextProducer, DirectoryProducer, HTMLPrinter, HTMLSerializer, ImagePrinter, ImportProcessor, NullProcessor, ParserProducer, ProjectProducer, Xalan2Processor, XMLPrinter

public abstract class AbstractComponent
extends java.lang.Object
implements Component

Version:
CVS $Revision: 313195 $ $Date: 1999-11-15 22:08:18 +0000 (Mon, 15 Nov 1999) $
Author:
Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.

Field Summary
protected  Engine engine
          The Engine owning this Component instance.
protected  Parameters params
          This component initialization Parameters.
 
Constructor Summary
AbstractComponent()
           
 
Method Summary
protected  void debug(java.lang.String message)
          Report a debug message to the owning Engine.
 void init(Engine e, Parameters p)
          Initialize this component instance.
protected  void log(java.lang.String message)
          Report a log message to the owning Engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

protected Engine engine
The Engine owning this Component instance.


params

protected Parameters params
This component initialization Parameters.

Constructor Detail

AbstractComponent

public AbstractComponent()
Method Detail

init

public void init(Engine e,
                 Parameters p)
          throws InitializationException
Initialize this component instance.

Specified by:
init in interface Component
Parameters:
e - The Engine owning this Component instance
p - This component initialization Parameters
Throws:
InitializationException - If this Component instance cannot be initialized.

debug

protected void debug(java.lang.String message)
Report a debug message to the owning Engine.

Parameters:
msg - The debug message to report.

log

protected void log(java.lang.String message)
Report a log message to the owning Engine.

Parameters:
msg - The log message to report.