org.openrdf.elmo.sesame.behaviours
Class PropertyChangeNotifierSupport

java.lang.Object
  extended by org.openrdf.elmo.sesame.behaviours.PropertyChangeNotifierSupport
All Implemented Interfaces:
PropertyChangeNotifier

public class PropertyChangeNotifierSupport
extends Object
implements PropertyChangeNotifier

Keeps a (non-persistent) list of observers, shared by all beans with the same subject. A strong reference is used for the subscribers and this does prevent garbage collection.

Author:
James Leigh

Constructor Summary
PropertyChangeNotifierSupport(Entity elmo)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a new listener to be notified of changes to this Bean.
 Object getCalled(InvocationContext ctx)
           
 Object mergeCalled(InvocationContext ctx)
           
static void notifyAllListenersOf(SesameManager manager)
           
 Object refreshCalled(InvocationContext ctx)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a listener and will no longer be notified of changes.
 Object setCalled(InvocationContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyChangeNotifierSupport

public PropertyChangeNotifierSupport(Entity elmo)
Method Detail

notifyAllListenersOf

public static void notifyAllListenersOf(SesameManager manager)

getCalled

public Object getCalled(InvocationContext ctx)
                 throws Exception
Throws:
Exception

setCalled

public Object setCalled(InvocationContext ctx)
                 throws Exception
Throws:
Exception

mergeCalled

public Object mergeCalled(InvocationContext ctx)
                   throws Exception
Throws:
Exception

refreshCalled

public Object refreshCalled(InvocationContext ctx)
                     throws Exception
Throws:
Exception

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: PropertyChangeNotifier
Adds a new listener to be notified of changes to this Bean.

Specified by:
addPropertyChangeListener in interface PropertyChangeNotifier

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: PropertyChangeNotifier
Removes a listener and will no longer be notified of changes.

Specified by:
removePropertyChangeListener in interface PropertyChangeNotifier


Copyright © 2004-2008 Aduna. All Rights Reserved.