public class PageFlowScopeStorage extends Object implements HttpSessionBindingListener
Modifier and Type | Field and Description |
---|---|
protected static String |
CHECKED_FLAG |
protected Map |
m_beans |
protected Object |
m_lastRequestID |
static String |
REQUEST_ID_ATTR |
static String |
REQUEST_KEEP_STATE |
static String |
REQUEST_RESET_STATE |
static String |
SESSION_ATTR |
Constructor and Description |
---|
PageFlowScopeStorage(FacesContext facesContext)
Creates and touches a new storage container.
|
Modifier and Type | Method and Description |
---|---|
boolean |
expire(FacesContext context)
Checks if this has expired, and if so, releases this' beans.
|
Object |
getBean(String beanName)
Returns the
Object stored with the given bean name. |
boolean |
isExpired(FacesContext facesContext)
Determines if this storage container is expired, e.g.
|
void |
release()
Releases all beans managed by this storage object.
|
protected void |
release(HttpSessionBindingEvent event) |
void |
setBean(String beanName,
Object bean)
Stores the
Object with the given bean name. |
void |
touch(FacesContext facesContext)
Touches this storage container.
|
void |
valueBound(HttpSessionBindingEvent event) |
void |
valueUnbound(HttpSessionBindingEvent event) |
public static final String SESSION_ATTR
public static final String REQUEST_ID_ATTR
public static final String REQUEST_KEEP_STATE
public static final String REQUEST_RESET_STATE
protected static final String CHECKED_FLAG
protected Map m_beans
protected Object m_lastRequestID
public PageFlowScopeStorage(FacesContext facesContext)
facesContext
- public Object getBean(String beanName)
Object
stored with the given bean name.beanName
- name of the beanpublic void setBean(String beanName, Object bean)
Object
with the given bean name. Replaces if
already set.beanName
- name of the beanbean
- name of the beanpublic boolean isExpired(FacesContext facesContext)
facesContext
- public void touch(FacesContext facesContext)
facesContext
- Current contextpublic void release()
protected void release(HttpSessionBindingEvent event)
public boolean expire(FacesContext context)
context
- Current context.true
if this method released the beans, false if it
didn't.public void valueBound(HttpSessionBindingEvent event)
valueBound
in interface HttpSessionBindingListener
public void valueUnbound(HttpSessionBindingEvent event)
valueUnbound
in interface HttpSessionBindingListener