java.lang.Object
com.sun.faces.application.view.ViewScopeContextManager
The manager that deals with CDI ViewScoped beans.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclear(FacesContext facesContext) Clear the current view map using the Faces context.voidClear the given view map.voidclear(FacesContext facesContext, Map<String, Object> viewMap) Deprecated.<T> TcreateBean(FacesContext facesContext, Contextual<T> contextual, CreationalContext<T> creational) Create the bean.voidfireDestroyedEvent(FacesContext facesContext, UIViewRoot root) voidfireInitializedEvent(FacesContext facesContext, UIViewRoot root) <T> TgetBean(FacesContext facesContext, Contextual<T> contextual) Get the value from the view map (or null if not found).voidsessionDestroyed(HttpSessionEvent httpSessionEvent) Called when a session destroyed. 
- 
Constructor Details
- 
ViewScopeContextManager
public ViewScopeContextManager() 
 - 
 - 
Method Details
- 
clear
Clear the current view map using the Faces context.- Parameters:
 facesContext- the Faces context.
 - 
clear
Deprecated.Clear the given view map. Use the version with the viewMapId.- Parameters:
 facesContext- the Faces context.viewMap- the given view map.
 - 
clear
Clear the given view map.- Parameters:
 facesContext- the Faces context.viewMapId- The ID of the view mapviewMap- the given view map.
 - 
createBean
public <T> T createBean(FacesContext facesContext, Contextual<T> contextual, CreationalContext<T> creational) Create the bean.- Type Parameters:
 T- the type.- Parameters:
 facesContext- the faces context.contextual- the contextual.creational- the creational.- Returns:
 - the value or null if not found.
 
 - 
getBean
Get the value from the view map (or null if not found).- Type Parameters:
 T- the type.- Parameters:
 facesContext- the faces context.contextual- the contextual.- Returns:
 - the value or null if not found.
 
 - 
sessionDestroyed
Called when a session destroyed.- Parameters:
 httpSessionEvent- the HTTP session event.
 - 
fireInitializedEvent
 - 
fireDestroyedEvent
 
 -