org.apache.avalon.excalibur.logger.util
Class AvalonTee

java.lang.Object
  extended by org.apache.avalon.excalibur.logger.util.AvalonTee
All Implemented Interfaces:
Disposable, Startable, Configurable, Contextualizable, LogEnabled
Direct Known Subclasses:
LoggerManagerTee

public class AvalonTee
extends java.lang.Object
implements LogEnabled, Contextualizable, Configurable, Startable, Disposable

This class broadcasts Avalon lifestyle events to several destination objects, somewhat like Unix 'tee' command directing its input both to file and to its output. The current implementation is incomplete and handles only LogEnabled, Contextutalizable, Configurable and Disposable interfaces.

Since:
4.0
Version:
CVS $Revision: 1.4 $ $Date: 2004/03/10 13:54:51 $
Author:
Avalon Development Team

Constructor Summary
AvalonTee()
           
 
Method Summary
 void addTee(java.lang.Object obj)
          Adds an object to the list of objects receiving events.
 void configure(Configuration config)
           
 void contextualize(Context context)
           
 void dispose()
           
 void enableLogging(Logger logger)
           
 void makeReadOnly()
          Disallow adding more tees.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvalonTee

public AvalonTee()
Method Detail

makeReadOnly

public void makeReadOnly()
Disallow adding more tees.


addTee

public void addTee(java.lang.Object obj)
Adds an object to the list of objects receiving events.

Parameters:
obj - the object to add; can not be null.

enableLogging

public void enableLogging(Logger logger)
Specified by:
enableLogging in interface LogEnabled

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Startable
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Startable
Throws:
java.lang.Exception

dispose

public void dispose()
Specified by:
dispose in interface Disposable


Copyright © 1997-2011 Apache Software Foundation. All Rights Reserved.