public abstract class BaseFacesSessionBean extends BaseFacesBean implements HttpSessionBindingListener, IPageFlowScopeAdapter
release()
method to cleanup all allocated resources when
http session gets invalidated.Modifier and Type | Field and Description |
---|---|
protected Boolean |
fExpireWithPageFlow
The value of 'expireWithPageFlow' flag from faces-config.
|
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
BaseFacesSessionBean()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getExpireWithPageFlow()
Returns the value of the expireWithPageFlow flag
|
protected abstract void |
release()
Override this method to release any resources associated with this session.
|
void |
setExpireWithPageFlow(Boolean value)
Sets the expireWithPageFlow flag.
|
void |
valueBound(HttpSessionBindingEvent event)
Implementation of the
HttpSessionBindingListener . |
void |
valueUnbound(HttpSessionBindingEvent event)
Implementation of the
HttpSessionBindingListener . |
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
protected Boolean fExpireWithPageFlow
NOTE: changing this value will have no effect after the managed bean has already been initialized and stored.
public Boolean getExpireWithPageFlow()
IPageFlowScopeAdapter
getExpireWithPageFlow
in interface IPageFlowScopeAdapter
public void setExpireWithPageFlow(Boolean value)
IPageFlowScopeAdapter
setExpireWithPageFlow
in interface IPageFlowScopeAdapter
value
- true or falseprotected abstract void release()
public void valueBound(HttpSessionBindingEvent event)
HttpSessionBindingListener
.
Does nothing by default.valueBound
in interface HttpSessionBindingListener
public void valueUnbound(HttpSessionBindingEvent event)
HttpSessionBindingListener
.
Calls release()
valueUnbound
in interface HttpSessionBindingListener