Class aglet.event.AgletEventListener
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aglet.event.AgletEventListener

java.lang.Object
   |
   +----aglet.event.AgletEventListener

public class AgletEventListener
extends Object
implements CloneListener, MobilityListener, PersistencyListener, Externalizable
The aglet event listener class is a container class for all aglet related listener. It is not normally used by the aglet programmers.

Constructor Index

 o AgletEventListener()
 o AgletEventListener(CloneListener, CloneListener)
Constructs an AgletEventlistener object with specified two clone listener objects.
 o AgletEventListener(MobilityListener, MobilityListener)
Constructs an AgletEventlistener object with specified two mobility listener objects.
 o AgletEventListener(PersistencyListener, PersistencyListener)
Constructs an AgletEventlistener object with specified two persistency listener objects.

Method Index

 o addCloneListener(CloneListener)
Adds the specified clone listener object
 o addMobilityListener(MobilityListener)
Adds the specified mobility listener object
 o addPersistencyListener(PersistencyListener)
Adds the specified persistency listener object
 o onActivation(PersistencyEvent)
Calls the onActivation methods on the listers with the specified persistency event.
 o onArrival(MobilityEvent)
Calls the onArrival methods on the listers with the specified mobility event.
 o onClone(CloneEvent)
Calls the onClone methods on the listers with the specified Clone event.
 o onCloned(CloneEvent)
Calls the onCloned methods on the listers with the specified Clone event.
 o onCloning(CloneEvent)
Calls the onCloning methods on the listers with the specified Clone event.
 o onDeactivating(PersistencyEvent)
Calls the onDeactivating methods on the listers with the specified persistency event.
 o onDispatching(MobilityEvent)
Calls the onDispatching methods on the listers with the specified mobility event.
 o onReverting(MobilityEvent)
Calls the onReverting methods on the listers with the specified mobility event.
 o readExternal(ObjectInput)
This is not used by aglet programmers.
 o removeCloneListener(CloneListener)
Removes the specified clone listener object
 o removeMobilityListener(MobilityListener)
Removes the specified mobility listener object
 o removePersistencyListener(PersistencyListener)
Removes the specified persistency listener object
 o size()
Returns the number of listeners
 o writeExternal(ObjectOutput)
This is not used by aglet programmers.

Constructors

 o AgletEventListener
  public AgletEventListener(MobilityListener l1,
                            MobilityListener l2)
Constructs an AgletEventlistener object with specified two mobility listener objects.
 o AgletEventListener
  public AgletEventListener(CloneListener l1,
                            CloneListener l2)
Constructs an AgletEventlistener object with specified two clone listener objects.
 o AgletEventListener
  public AgletEventListener(PersistencyListener l1,
                            PersistencyListener l2)
Constructs an AgletEventlistener object with specified two persistency listener objects.
 o AgletEventListener
  public AgletEventListener()

Methods

 o size
  public int size()
Returns the number of listeners
 o addCloneListener
  public void addCloneListener(CloneListener listener)
Adds the specified clone listener object
 o addMobilityListener
  public void addMobilityListener(MobilityListener listener)
Adds the specified mobility listener object
 o addPersistencyListener
  public void addPersistencyListener(PersistencyListener listener)
Adds the specified persistency listener object
 o removeCloneListener
  public void removeCloneListener(CloneListener listener)
Removes the specified clone listener object
 o removeMobilityListener
  public void removeMobilityListener(MobilityListener listener)
Removes the specified mobility listener object
 o removePersistencyListener
  public void removePersistencyListener(PersistencyListener listener)
Removes the specified persistency listener object
 o onCloning
  public void onCloning(CloneEvent ev)
Calls the onCloning methods on the listers with the specified Clone event.
 o onClone
  public void onClone(CloneEvent ev)
Calls the onClone methods on the listers with the specified Clone event.
 o onCloned
  public void onCloned(CloneEvent ev)
Calls the onCloned methods on the listers with the specified Clone event.
 o onDispatching
  public void onDispatching(MobilityEvent ev)
Calls the onDispatching methods on the listers with the specified mobility event.
 o onReverting
  public void onReverting(MobilityEvent ev)
Calls the onReverting methods on the listers with the specified mobility event.
 o onArrival
  public void onArrival(MobilityEvent ev)
Calls the onArrival methods on the listers with the specified mobility event.
 o onDeactivating
  public void onDeactivating(PersistencyEvent ev)
Calls the onDeactivating methods on the listers with the specified persistency event.
 o onActivation
  public void onActivation(PersistencyEvent ev)
Calls the onActivation methods on the listers with the specified persistency event.
 o writeExternal
  public void writeExternal(ObjectOutput out) throws IOException
This is not used by aglet programmers.
 o readExternal
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
This is not used by aglet programmers.

All Packages  Class Hierarchy  This Package  Previous  Next  Index