|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 LogEnabledlogger - the logger. Must not be null.
public void contextualize(Context context)
throws ContextException
Contextualizable
contextualize in interface Contextualizablecontext - the context. Must not be null.
ContextException - if context is invalid
public void configure(Configuration config)
throws ConfigurationException
ConfigurableConfiguration to the Configurable
class.
configure in interface Configurableconfig - the class configurations. Must not be null.
ConfigurationException - if an error occurs
public void start()
throws java.lang.Exception
Startable
start in interface Startablejava.lang.Exception - if Component can not be started
public void stop()
throws java.lang.Exception
Startable
stop in interface Startablejava.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 | ||||||||||