org.objectweb.speedo.genclass.api
Interface SpeedoGenClassListener


public interface SpeedoGenClassListener

This interface is a listener of generic class events. Two events are listened: the adding or the removing of an element into/from the genclass.


Method Summary
 void speedoElementAdded(java.lang.Object elem, int gcid)
          Manage the coherence corresponding to the adding of an element into a generic class.
 void speedoElementRemoved(java.lang.Object elem, int gcid)
          Manage the coherence corresponding to the adding of an element into a generic class.
 

Method Detail

speedoElementAdded

public void speedoElementAdded(java.lang.Object elem,
                               int gcid)
Manage the coherence corresponding to the adding of an element into a generic class.

Parameters:
elem - is the element removed from the genclass.
gcid - is the generic class identifier. A persistent class can have several multivalued reference (generic class). Then this integer is the identifier of the generic class in a persistent class.

speedoElementRemoved

public void speedoElementRemoved(java.lang.Object elem,
                                 int gcid)
Manage the coherence corresponding to the adding of an element into a generic class.

Parameters:
elem - is the element added into the genclass.
gcid - is the generic class identifier. A persistent class can have several multivalued reference (generic class). Then this integer is the identifier of the generic class in a persistent class.