Data Request Broker
2-3-release

fr.gael.drb
Interface DrbNodesChangeProducer

All Known Implementing Classes:
DrbAbstractNode, DrbDefaultMutableNode, DrbDefaultNodesChangeProducer, DrbNodeImpl, fr.gael.drb.impl.spi.DrbNodeSpi, File, FileNode, FtpNode, URLNode, XmlDocument, XmlNode, XsdNodeImpl, ZipFileNode, ZipNode

public interface DrbNodesChangeProducer

Interface identifying any node change procucer. This interface unifies the adds and removals of node change listeners. Is is dedicated to DRB implementations that trigger node change events and in particular the one that are mutable. It is important to keep in mind that NOT ALL node implementations implements this interface mainly because they are not mutable (i.e. no change to manage).


Method Summary
 void addNodesChangeListener(DrbNodesChangeListener listener)
          Adds a listener to the producer.
 void removeNodesChangeListener(DrbNodesChangeListener listener)
          Removes a listener to the producer.
 

Method Detail

addNodesChangeListener

void addNodesChangeListener(DrbNodesChangeListener listener)
Adds a listener to the producer. This operation enables to add a nodes change listener to the implementing class. Any change performed by the implementing class will be notified by a DrbNodesChangeEvent fired throught the specific triggers (i.e. operations) of the listeners. In case of problem, no error as well as exception is raised.

Parameters:
listener - The listener to be added in the list of the impelemting class.

removeNodesChangeListener

void removeNodesChangeListener(DrbNodesChangeListener listener)
Removes a listener to the producer. This operation enables to remove a nodes change listener to the implementing class. This listener is supposer to habe been previously inserted with the addNodesChangeListener() operation. In case of null parameter or unsuccessful retreival, no error as well as eception is raised.

Parameters:
listener - The listener to be removed in the list of the impelemting class.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .