|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.excalibur.logger.util.AvalonTee
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.
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)
Pass the Configuration to the Configurable
class. |
void |
contextualize(Context context)
Pass the Context to the component. |
void |
dispose()
The dispose operation is called at the end of a components lifecycle. |
void |
enableLogging(Logger logger)
Provide component with a logger. |
void |
makeReadOnly()
Disallow adding more tees. |
void |
start()
Starts the component. |
void |
stop()
Stops the component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AvalonTee()
Method Detail |
public void makeReadOnly()
public void addTee(java.lang.Object obj)
obj
- the object to add; can not be null.public void enableLogging(Logger logger)
LogEnabled
enableLogging
in interface LogEnabled
logger
- the logger. Must not be null
.public void contextualize(Context context) throws ContextException
Contextualizable
contextualize
in interface Contextualizable
context
- the context. Must not be null
.
ContextException
- if context is invalidpublic void configure(Configuration config) throws ConfigurationException
Configurable
Configuration
to the Configurable
class.
configure
in interface Configurable
config
- the class configurations. Must not be null
.
ConfigurationException
- if an error occurspublic void start() throws java.lang.Exception
Startable
start
in interface Startable
java.lang.Exception
- if Component can not be startedpublic void stop() throws java.lang.Exception
Startable
stop
in interface Startable
java.lang.Exception
- if the Component can not be Stopped.public void dispose()
Disposable
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |