com.esri.arcgis.webcontrols.data
Interface WebLifecycle

All Superinterfaces:
Serializable
All Known Implementing Classes:
AGSResource, AGSWebMap, AGSWebOverview, AGSWebPageLayout, AGSWebScaleBar, WebContext

public interface WebLifecycle
extends Serializable

The WebLifecycle class represents the web lifecycle of a server-side object and manages state between requests. If a custom object needs this behavior, the WebLifecycle interface is implemented to save and restore objects. The WebContext activates and passivates for any object that is an instance of WebLifecycle if it is stored as an attribute to the WebContext. In addition, it calls the destroy method to clean up any objects.


Method Summary
 void activate()
          Activates the object when a servlet request is received.
 void destroy()
          Destroys the object when the WebSession is destroyed.
 void passivate()
          Passivates the object when a servlet response has been generated.
 

Method Detail

destroy

public void destroy()
Destroys the object when the WebSession is destroyed. Called by the framework when the web session is destroyed.


activate

public void activate()
Activates the object when a servlet request is received.


passivate

public void passivate()
Passivates the object when a servlet response has been generated.