| Modifier and Type | Field and Description |
|---|---|
| public static final String | ACTIVE_VIEW_MAPS
Stores the constants to keep track of the active view maps. |
| public static final String | ACTIVE_VIEW_MAPS_SIZE
Stores the constant for the maximum active view map size. |
| private final ViewScopeContextManager | contextManager
Stores the CDI context manager. |
| private final boolean | |
| private static final Logger | LOGGER
Stores the logger. |
| private Integer | |
| public static final String | VIEW_MAP
Stores the view map. |
| public static final String | VIEW_MAP_ID
Stores the view map id. |
| public static final String | VIEW_SCOPE_MANAGER
Stores the constant to keep track of the ViewScopeManager. |
| 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 view map. viewMap)
Deprecated
Clear the given view map. |
| public void | |
| public void | destroyBeans(FacesContext
the Faces Context. facesContext, Map<String, Object> the view map. viewMap)Destroy the managed beans from the given view map. |
| private void | destroyBeans(ApplicationAssociate
the application associate. applicationAssociate, Map<String, Object> the view map. viewMap)Destroy the managed beans from the given view map. |
| pack-priv ViewScopeContextManager | |
| public static ViewScopeManager | |
| public boolean | Returns: true if UIViewRoot, false otherwise.the source. source)Implements jakarta. Is a listener for the given source. |
| protected static String | Returns: located IDThe faces context facesContext, Map<String, Object> The view to locate viewMap)Static method that locates the ID for a view map in the active view maps stored in the session. |
| public void | processEvent(SystemEvent
the system event. systemEvent)Implements jakarta. Process the system event. |
| private void | processPostConstructViewMap(SystemEvent
the system event. systemEvent)Process the PostConstructViewMap system event. |
| private void | processPreDestroyViewMap(SystemEvent
the system event. se)Process the PreDestroyViewMap system event. |
| private void | removeEldestViewMap(FacesContext
the context facesContext, String the view map id viewMapId, Map<String, Object> the eldest view map. eldestViewMap)Remove the eldest view map from the active view maps. |
| public void | sessionCreated(HttpSessionEvent
the HTTP session event. se)Overrides default jakarta. Create the associated data in the session (if any). |
| public void | sessionDestroyed(HttpSessionEvent
the HTTP session event. httpSessionEvent)Overrides default jakarta. Destroy the associated data in the session. |
| ACTIVE_VIEW_MAPS | back to summary |
|---|---|
| public static final String ACTIVE_VIEW_MAPS Stores the constants to keep track of the active view maps. | |
| ACTIVE_VIEW_MAPS_SIZE | back to summary |
|---|---|
| public static final String ACTIVE_VIEW_MAPS_SIZE Stores the constant for the maximum active view map size. | |
| contextManager | back to summary |
|---|---|
| private final ViewScopeContextManager contextManager Stores the CDI context manager. | |
| distributable | back to summary |
|---|---|
| private final boolean distributable | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Stores the logger. | |
| numberOfActiveViewMapsInWebXml | back to summary |
|---|---|
| private Integer numberOfActiveViewMapsInWebXml | |
| VIEW_MAP | back to summary |
|---|---|
| public static final String VIEW_MAP Stores the view map. | |
| VIEW_MAP_ID | back to summary |
|---|---|
| public static final String VIEW_MAP_ID Stores the view map id. | |
| VIEW_SCOPE_MANAGER | back to summary |
|---|---|
| public static final String VIEW_SCOPE_MANAGER Stores the constant to keep track of the ViewScopeManager. | |
| ViewScopeManager | back to summary |
|---|---|
| public ViewScopeManager() Constructor. | |
| 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 viewMapId.
| |
| clear | back to summary |
|---|---|
| public void clear(FacesContext facesContext, String viewMapId, Map<String, Object> viewMap) Clear the given view map.
| |
| destroyBeans | back to summary |
|---|---|
| public void destroyBeans(FacesContext facesContext, Map<String, Object> viewMap) Destroy the managed beans from the given view map.
| |
| destroyBeans | back to summary |
|---|---|
| private void destroyBeans(ApplicationAssociate applicationAssociate, Map<String, Object> viewMap) Destroy the managed beans from the given view map.
| |
| getContextManager | back to summary |
|---|---|
| pack-priv ViewScopeContextManager getContextManager() Get the CDI context manager.
| |
| getInstance | back to summary |
|---|---|
| public static ViewScopeManager getInstance(FacesContext facesContext) Get our instance.
| |
| isListenerForSource | back to summary |
|---|---|
| public boolean isListenerForSource(Object source) Implements jakarta. Is a listener for the given source. | |
| locateViewMapId | back to summary |
|---|---|
| protected static String locateViewMapId(FacesContext facesContext, Map<String, Object> viewMap) Static method that locates the ID for a view map in the active view maps stored in the session. It just performs a == over the view map because it should be the same object.
| |
| processEvent | back to summary |
|---|---|
| public void processEvent(SystemEvent systemEvent) throws AbortProcessingException Implements jakarta. Process the system event.
| |
| processPostConstructViewMap | back to summary |
|---|---|
| private void processPostConstructViewMap(SystemEvent systemEvent) Process the PostConstructViewMap system event.
| |
| processPreDestroyViewMap | back to summary |
|---|---|
| private void processPreDestroyViewMap(SystemEvent se) Process the PreDestroyViewMap system event.
| |
| removeEldestViewMap | back to summary |
|---|---|
| private void removeEldestViewMap(FacesContext facesContext, String viewMapId, Map<String, Object> eldestViewMap) Remove the eldest view map from the active view maps.
| |
| sessionCreated | back to summary |
|---|---|
| public void sessionCreated(HttpSessionEvent se) Overrides default jakarta. Create the associated data in the session (if any).
| |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed(HttpSessionEvent httpSessionEvent) Overrides default jakarta. Destroy the associated data in the session.
| |