public class ViewScopeManager extends Object implements javax.servlet.http.HttpSessionListener, ViewMapListener
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE_VIEW_MAPS
Stores the constants to keep track of the active view maps.
|
static String |
ACTIVE_VIEW_MAPS_SIZE
Stores the constant for the maximum active view map size.
|
static String |
VIEW_MAP
Stores the view map.
|
static String |
VIEW_MAP_ID
Stores the view map id.
|
static String |
VIEW_SCOPE_MANAGER
Stores the constant to keep track of the ViewScopeManager.
|
Constructor and Description |
---|
ViewScopeManager()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear(FacesContext facesContext)
Clear the current view map using the Faces context.
|
void |
clear(FacesContext facesContext,
Map<String,Object> viewMap)
Clear the given view map.
|
void |
destroyBeans(FacesContext facesContext,
Map<String,Object> viewMap)
Destroy the managed beans from the given view map.
|
static ViewScopeManager |
getInstance(FacesContext facesContext)
Get our instance.
|
boolean |
isListenerForSource(Object source)
Is a listener for the given source.
|
void |
processEvent(SystemEvent se)
Process the system event.
|
void |
sessionCreated(javax.servlet.http.HttpSessionEvent se)
Create the associated data in the session (if any).
|
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent hse)
Destroy the associated data in the session.
|
public static final String ACTIVE_VIEW_MAPS
public static final String ACTIVE_VIEW_MAPS_SIZE
public static final String VIEW_MAP
public static final String VIEW_MAP_ID
public static final String VIEW_SCOPE_MANAGER
public void clear(FacesContext facesContext)
facesContext
- the Faces context.public void clear(FacesContext facesContext, Map<String,Object> viewMap)
facesContext
- the Faces context.viewMap
- the view map.public void destroyBeans(FacesContext facesContext, Map<String,Object> viewMap)
facesContext
- the Faces Context.viewMap
- the view map.public static ViewScopeManager getInstance(FacesContext facesContext)
facesContext
- the FacesContext.public boolean isListenerForSource(Object source)
isListenerForSource
in interface SystemEventListener
source
- the source.public void processEvent(SystemEvent se) throws AbortProcessingException
processEvent
in interface SystemEventListener
se
- the system event.AbortProcessingException
- when processing needs to be aborter.public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
sessionCreated
in interface javax.servlet.http.HttpSessionListener
se
- the HTTP session event.public void sessionDestroyed(javax.servlet.http.HttpSessionEvent hse)
sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
hse
- the HTTP session event.Copyright © 1997–2019 Eclipse Foundation. All rights reserved.