ch.elca.el4j.services.persistence.generic.dao.impl
Class DefaultDaoChangeNotifier

java.lang.Object
  extended by ch.elca.el4j.services.persistence.generic.dao.impl.DefaultDaoChangeNotifier
All Implemented Interfaces:
DaoChangeNotifier

public class DefaultDaoChangeNotifier
extends Object
implements DaoChangeNotifier

A default implementation with no notable features.

Author:
Adrian Moos (AMS)
File-location:
DefaultDaoChangeNotifier
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Nested Class Summary
 
Nested classes/interfaces inherited from interface ch.elca.el4j.services.persistence.generic.dao.DaoChangeNotifier
DaoChangeNotifier.Change, DaoChangeNotifier.EntityChange, DaoChangeNotifier.EntityDeleted, DaoChangeNotifier.EntityInserted, DaoChangeNotifier.EntityStateChanged, DaoChangeNotifier.NewEntityState
 
Field Summary
protected  List<DaoChangeListener> m_listeners
          The presently subscribed listeners.
 
Fields inherited from interface ch.elca.el4j.services.persistence.generic.dao.DaoChangeNotifier
FUZZY_CHANGE
 
Constructor Summary
DefaultDaoChangeNotifier()
           
 
Method Summary
 void announce(DaoChangeNotifier.Change change)
          Announces change to all subscribed observers.
 void subscribe(DaoChangeListener cl)
          Causes cl to receive future change notifications.
 void unsubscribe(DaoChangeListener cl)
          Causes cl to no longer receive future change notifications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_listeners

protected List<DaoChangeListener> m_listeners
The presently subscribed listeners.

Constructor Detail

DefaultDaoChangeNotifier

public DefaultDaoChangeNotifier()
Method Detail

subscribe

public void subscribe(DaoChangeListener cl)
Causes cl to receive future change notifications.

Specified by:
subscribe in interface DaoChangeNotifier
Parameters:
cl - The DaoChangeListener to subscribe

unsubscribe

public void unsubscribe(DaoChangeListener cl)
Causes cl to no longer receive future change notifications.

Specified by:
unsubscribe in interface DaoChangeNotifier
Parameters:
cl - The DaoChangeListener to unsubscribe

announce

public void announce(DaoChangeNotifier.Change change)
Announces change to all subscribed observers.

Specified by:
announce in interface DaoChangeNotifier
Parameters:
change - The change to announce


Copyright © 2005-2011 ELCA. All Rights Reserved.