| java.lang.Object com.sun.rave.web.ui.appbase.FacesBean com.sun.rave.web.ui.appbase.AbstractSessionBean
All known Subclasses: vehicleincidentreportapplication.SessionBean1, movieadmin.SessionBean1, singlepagecrudform.SessionBean1, twopagecrudtable.SessionBean1, travelcenter.SessionBean1, singlepagecrudtable.SessionBean1,
AbstractSessionBean | abstract public class AbstractSessionBean extends FacesBean implements Serializable(Code) | | AbstractSessionBean is the abstract base class for
data bean(s) that are stored in session scope attributes. It extends
FacesBean , so it inherits all of the default behavior
found there. In addition, the following lifecycle methods are called
automatically when the corresponding events occur:
init() - Called when this bean is initially added
as a session attribute (typically as the result of evaluating a
value binding or method binding expression).
passivate() - Called when the servlet container is about
to serialize and remove this session from its current container.
activate() - Called when the servlet container has
finished deserializing this session and making it available in a
(potentially different) container.
destroy() - Called when the bean is removed from the
session attributes (typically as a result of the session timing out
or being terminated by the application).
|
Method Summary | |
public void | activate() | public void | destroy() This method is called when this bean is removed from
session scope. | public void | init() This method is called when this bean is initially added to
session scope. | public void | passivate() This method is called when the session containing it is about to be
passivated. |
AbstractSessionBean | public AbstractSessionBean()(Code) | | Create a new session scope bean.
|
activate | public void activate()(Code) | | This method is called when the session containing it was
reactivated.
You may customize this method to reacquire references to session
data or resources that could not be serialized with the
session itself.
|
destroy | public void destroy()(Code) | | This method is called when this bean is removed from
session scope. Typically, this occurs as a result of
the session timing out or being terminated by the application.
You may customize this method to clean up resources allocated
during the execution of the init() method, or
at any later time during the lifetime of the application.
|
init | public void init()(Code) | | This method is called when this bean is initially added to
session scope. Typically, this occurs as a result of evaluating
a value binding or method binding expression, which utilizes the
managed bean facility to instantiate this bean and store it into
session scope.
You may customize this method to initialize and cache data values
or resources that are required for the lifetime of a particular
user session.
|
passivate | public void passivate()(Code) | | This method is called when the session containing it is about to be
passivated. Typically, this occurs in a distributed servlet container
when the session is about to be transferred to a different
container instance, after which the activate() method
will be called to indicate that the transfer is complete.
You may customize this method to release references to session data
or resources that can not be serialized with the session itself.
|
|
|