org.atmosphere.cpr
Interface AtmosphereEventLifecycle

All Known Subinterfaces:
AtmosphereResource
All Known Implementing Classes:
AtmosphereResourceImpl

public interface AtmosphereEventLifecycle

Simple life cycle interface for processing AtmosphereResourceEventListener.

Author:
Jeanfrancois Arcand

Method Summary
 AtmosphereEventLifecycle addEventListener(AtmosphereResourceEventListener e)
          Add a AtmosphereResourceEventListener.
 AtmosphereEventLifecycle notifyListeners()
          Notify All AtmosphereResourceEventListener.
 AtmosphereEventLifecycle notifyListeners(AtmosphereResourceEvent e)
          Notify AtmosphereResourceEventListener.
 AtmosphereEventLifecycle removeEventListener(AtmosphereResourceEventListener e)
          Remove aAtmosphereResourceEventListener.
 AtmosphereEventLifecycle removeEventListeners()
          Remove all AtmosphereResourceEventListener.
 

Method Detail

addEventListener

AtmosphereEventLifecycle addEventListener(AtmosphereResourceEventListener e)
Add a AtmosphereResourceEventListener.

Parameters:
e - an instance of AtmosphereResourceEventListener

removeEventListener

AtmosphereEventLifecycle removeEventListener(AtmosphereResourceEventListener e)
Remove aAtmosphereResourceEventListener.

Parameters:
e -

removeEventListeners

AtmosphereEventLifecycle removeEventListeners()
Remove all AtmosphereResourceEventListener.


notifyListeners

AtmosphereEventLifecycle notifyListeners(AtmosphereResourceEvent e)
Notify AtmosphereResourceEventListener.

Parameters:
e - an instance of AtmosphereResourceEvent

notifyListeners

AtmosphereEventLifecycle notifyListeners()
Notify All AtmosphereResourceEventListener.



Copyright © 2012. All Rights Reserved.