|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.nava.informa.utils.cleaner.CompositeObserver
class CompositeObserver
Composite observer follows Composite pattern to combine several observers. When it receives event it delivers this event to all of it's sub-observers.
| Constructor Summary | |
|---|---|
CompositeObserver()
|
|
| Method Summary | |
|---|---|
void |
add(CleanerObserverIF observer)
Adds new observer to the list. |
void |
cleaningFinished(ChannelIF channel)
Invoked by cleanup engine when cleaning of the channel has finished. |
void |
cleaningStarted(ChannelIF channel)
Invoked by cleanup engine when cleaning of the channel has started. |
void |
remove(CleanerObserverIF observer)
Removes observer from the list. |
void |
unwantedItem(ItemIF item,
ChannelIF channel)
Invoked when cleanup engine finds unwanted item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
CompositeObserver()
| Method Detail |
|---|
public void unwantedItem(ItemIF item,
ChannelIF channel)
unwantedItem in interface CleanerObserverIFitem - unwanted item.channel - channel this item resides in.public void cleaningStarted(ChannelIF channel)
cleaningStarted in interface CleanerObserverIFchannel - channel being cleaned.public void cleaningFinished(ChannelIF channel)
cleaningFinished in interface CleanerObserverIFchannel - channel being cleaned.public final void add(CleanerObserverIF observer)
observer - new observer.public final void remove(CleanerObserverIF observer)
observer - registered observer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||