| Modifier and Type | Field and Description |
|---|---|
| private static final String | ACTIVE_VIEW_CONTEXTS
Stores the constant to keep track of all the active view scope contexts. |
| private final BeanManager | |
| private final boolean | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear(FacesContext
the Faces context. facesContext)Clear the current view map using the Faces context. |
| public void | clear(FacesContext
the Faces context. facesContext, Map<String, Object> the given view map. viewMap)
Deprecated
Clear the given view map. |
| public void | |
| public < the type. T> T | Returns: the value or null if not found.the faces context. facesContext, Contextual<T> the contextual. contextual, CreationalContext<T> the creational. creational)Create the bean. |
| private void | destroyBeans(Map<String, Object>
the view map. viewMap, Map<String, ViewScopeContextObject> the context map. contextMap)Destroy the view scoped beans for the given view and context map. |
| public void | |
| public void | |
| public < the type. T> T | Returns: the value or null if not found.the faces context. facesContext, Contextual<T> the contextual. contextual)Get the value from the view map (or null if not found). |
| private Map | Returns: the context map.the Faces context. facesContext)Get the context map. |
| private Map | Returns: the context map.the Faces context. facesContext, boolean flag to indicate if we are creating the context map. create)Get the context map. |
| private Map | Returns: the context map.the Faces context. facesContext, String The viewMapId of the map. viewMapId)Get the context map. |
| private String | |
| public void | sessionDestroyed(HttpSessionEvent
the HTTP session event. httpSessionEvent)Called when a session destroyed. |
| ACTIVE_VIEW_CONTEXTS | back to summary |
|---|---|
| private static final String ACTIVE_VIEW_CONTEXTS Stores the constant to keep track of all the active view scope contexts. | |
| beanManager | back to summary |
|---|---|
| private final BeanManager beanManager | |
| distributable | back to summary |
|---|---|
| private final boolean distributable | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| ViewScopeContextManager | back to summary |
|---|---|
| public ViewScopeContextManager() | |
| clear | back to summary |
|---|---|
| public void clear(FacesContext facesContext) Clear the current view map using the Faces context.
| |
| clear | back to summary |
|---|---|
| public void clear(FacesContext facesContext, Map<String, Object> viewMap)
Deprecated
Clear the given view map. Use the version with the viewMapId.
| |
| clear | back to summary |
|---|---|
| public void clear(FacesContext facesContext, String viewMapId, Map<String, Object> viewMap) Clear the given view map.
| |
| createBean | back to summary |
|---|---|
| public <T> T createBean(FacesContext facesContext, Contextual<T> contextual, CreationalContext<T> creational) Create the bean.
| |
| destroyBeans | back to summary |
|---|---|
| private void destroyBeans(Map<String, Object> viewMap, Map<String, ViewScopeContextObject> contextMap) Destroy the view scoped beans for the given view and context map. | |
| fireDestroyedEvent | back to summary |
|---|---|
| public void fireDestroyedEvent(FacesContext facesContext, UIViewRoot root) | |
| fireInitializedEvent | back to summary |
|---|---|
| public void fireInitializedEvent(FacesContext facesContext, UIViewRoot root) | |
| getBean | back to summary |
|---|---|
| public <T> T getBean(FacesContext facesContext, Contextual<T> contextual) Get the value from the view map (or null if not found).
| |
| getContextMap | back to summary |
|---|---|
| private Map Get the context map.
| |
| getContextMap | back to summary |
|---|---|
| private Map Get the context map.
| |
| getContextMap | back to summary |
|---|---|
| private Map Get the context map.
| |
| getName | back to summary |
|---|---|
| private String getName(Object instance) Get the name of the bean for the given object. | |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed(HttpSessionEvent httpSessionEvent) Called when a session destroyed.
| |