org.apache.avalon.excalibur.logger.util
Class AvalonTee
java.lang.Object
org.apache.avalon.excalibur.logger.util.AvalonTee
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Startable, Configurable, Contextualizable, LogEnabled
- Direct Known Subclasses:
- LoggerManagerTee
public class AvalonTee
- extends Object
- implements LogEnabled, Contextualizable, Configurable, org.apache.avalon.framework.activity.Startable, org.apache.avalon.framework.activity.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvalonTee
public AvalonTee()
makeReadOnly
public void makeReadOnly()
- Disallow adding more tees.
addTee
public void addTee(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 Exception
- Specified by:
start in interface org.apache.avalon.framework.activity.Startable
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop in interface org.apache.avalon.framework.activity.Startable
- Throws:
Exception
dispose
public void dispose()
- Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable
Copyright © 1997-2012 Apache Software Foundation. All Rights Reserved.