org.apache.shale.view
Class AbstractRequestBean

java.lang.Object
  extended by org.apache.shale.view.AbstractFacesBean
      extended by org.apache.shale.view.AbstractRequestBean

public abstract class AbstractRequestBean
extends AbstractFacesBean

AbstractRequestBean is the abstract base class for data bean(s) that are stored in request scope attributes. It extends AbstractFacesBean, so it inherits all of the default behavior found there. In addition, the following lifecycle methods are called automatically when the corresponding events occur:

$Id: AbstractRequestBean.java 464373 2006-10-16 04:21:54Z rahul $


Constructor Summary
AbstractRequestBean()
          Create a new request scope bean.
 
Method Summary
 void destroy()
          This method is called when this bean is removed from request scope.
 void init()
          This method is called when this bean is initially added to request scope.
 
Methods inherited from class org.apache.shale.view.AbstractFacesBean
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequestBean

public AbstractRequestBean()

Create a new request scope bean.

Method Detail

init

public void init()

This method is called when this bean is initially added to request 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 request scope.

You may customize this method to allocate resources that are required for the lifetime of the current request.


destroy

public void destroy()

This method is called when this bean is removed from request scope. This occurs automatically when the corresponding HTTP response has been completed and sent to the client.

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 request.



Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.