|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.shale.view.AbstractFacesBean
org.apache.shale.view.AbstractApplicationBean
public abstract class AbstractApplicationBean
AbstractApplicationBean is the abstract base class for
data bean(s) that are stored in application 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:
init()
- Called when this bean is initially added as an
application scope attribute (typically as the result of
evaluating a value binding or method binding expression).destroy()
- Called when the bean is removed from the
application attributes (typically as a result of the application
being shut down by the servlet container).
Constructor Summary | |
---|---|
AbstractApplicationBean()
Create a new application scope bean. |
Method Summary | |
---|---|
void |
destroy()
This method is called when this bean is removed from application scope. |
void |
init()
This method is called when this bean is initially added to application 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 |
---|
public AbstractApplicationBean()
Create a new application scope bean.
Method Detail |
---|
public void init()
This method is called when this bean is initially added to application 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 application scope.
You may customize this method to initialize and cache application wide data values (such as the lists of valid options for dropdown list components), or to allocate resources that are required for the lifetime of the application.
public void destroy()
This method is called when this bean is removed from application scope. Typically, this occurs as a result of the application being shut down by its owning container.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |