de.nava.informa.utils
Class SimpleChannelObserver

java.lang.Object
  extended by de.nava.informa.utils.SimpleChannelObserver
All Implemented Interfaces:
ChannelObserverIF

public class SimpleChannelObserver
extends Object
implements ChannelObserverIF

Simple implementation of the ChannelOberserverIF interface for keeping track of the added news item (and also to properly handle it by the logging facility).

Author:
Niko Schmuck (niko@nava.de)

Constructor Summary
SimpleChannelObserver()
           
 
Method Summary
 void channelRetrieved(ChannelIF channel)
          Called when a new Channel is added
 ItemIF getMyAddedItem()
           
 void itemAdded(ItemIF newItem)
          Called when a new Item is added to this Channel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleChannelObserver

public SimpleChannelObserver()
Method Detail

getMyAddedItem

public ItemIF getMyAddedItem()

itemAdded

public void itemAdded(ItemIF newItem)
Description copied from interface: ChannelObserverIF
Called when a new Item is added to this Channel

Specified by:
itemAdded in interface ChannelObserverIF
Parameters:
newItem - - Item that was added.

channelRetrieved

public void channelRetrieved(ChannelIF channel)
Description copied from interface: ChannelObserverIF
Called when a new Channel is added

Specified by:
channelRetrieved in interface ChannelObserverIF
Parameters:
channel - - Channel that was added


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.