|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LogListener
A class that wants to subscribe to a LogBroadcaster must implement this interface.
| Method Summary | |
|---|---|
void |
addedTo(LogBroadcaster le)
This method is called whenever this LogSubscriber is successfully attached to a LogBroadcaster. |
boolean |
receiveLogEvent(LogEvent le)
This method is called whenever a new log event has arrived for the subscriber to handle. |
void |
removedFrom(LogBroadcaster le)
This method is called whenever this LogListener is removed from a LogBroadcaster. |
| Method Detail |
|---|
boolean receiveLogEvent(LogEvent le)
void addedTo(LogBroadcaster le)
LogBroadcaster.
The LogSubscriber can use this event to keep a list of LogBroadcasters it is subscribed to, so it can
easily remove itself from those when itself wants to get garbage-collected.
void removedFrom(LogBroadcaster le)
LogListener is removed from a LogBroadcaster.
The LogBroadcaster can use this event to update its list of LogBroadcaster it is subscribed to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||