public class ViewPoolProcessor extends Object
<faces-config-extension>
<view-pool-mapping>
<url-pattern>/*</url-pattern>
<parameter>
<name>org.apache.myfaces.VIEW_POOL_MAX_POOL_SIZE</name>
<value>5</value>
</parameter>
</view-pool-mapping>
</faces-config-extension>
Modifier and Type | Field and Description |
---|---|
static String |
DISPOSE_VIEW_NAVIGATION
Flag to indicate that dispose this view on navigation is valid.
|
static String |
ENABLE_VIEW_POOL
UIViewRoot attribute to enable/disable the view for use pooling.
|
static String |
FORCE_HARD_RESET
Flag that indicates to the StateManagementStrategy that no state needs
to be stored and we are using saveState() to dispose the view and store it
into the pool directly.
|
static String |
INVOKE_DEFERRED_NAVIGATION
Param used to indicate a "deferred navigation" needs to be done.
|
static int |
RESET_MODE_HARD
Indicates a hard reset should be done when saveState(...) is performed,
which means all transient and delta state should be cleared, destroying
all existing state in the process.
|
static int |
RESET_MODE_OFF
Indicates no reset should be done on this state saving
|
static int |
RESET_MODE_SOFT
Indicates a soft reset should be done when saveState(...) is performed,
which means all transient state should be cleared but the delta state
should not be destroyed in the process.
|
static String |
RESET_SAVE_STATE_MODE_KEY
Attribute of UIViewRoot that indicates if a soft (1) or hard(2)
(reset and check) reset is required in the call to saveState().
|
Constructor and Description |
---|
ViewPoolProcessor(FacesContext context) |
public static final String ENABLE_VIEW_POOL
public static final String FORCE_HARD_RESET
public static final String DISPOSE_VIEW_NAVIGATION
public static final String RESET_SAVE_STATE_MODE_KEY
public static final int RESET_MODE_OFF
public static final int RESET_MODE_SOFT
public static final int RESET_MODE_HARD
public static final String INVOKE_DEFERRED_NAVIGATION
public ViewPoolProcessor(FacesContext context)
public static ViewPoolProcessor getInstance(FacesContext context)
public static void initialize(FacesContext context)
context
- public ViewPool getViewPool(FacesContext context, UIViewRoot root)
public boolean isViewPoolEnabledForThisView(FacesContext context, UIViewRoot root)
public boolean isViewPoolStrategyAllowedForThisView(FacesContext context, UIViewRoot root)
public void setViewPoolDisabledOnThisView(FacesContext context, UIViewRoot root, boolean value)
public void cloneAndRestoreView(FacesContext context, UIViewRoot newView, ViewEntry entry, ViewStructureMetadata metadata)
context
- newView
- entry
- public void storeViewStructureMetadata(FacesContext context, UIViewRoot root)
public ViewStructureMetadata retrieveViewStructureMetadata(FacesContext context, UIViewRoot root)
public void pushResetableView(FacesContext context, UIViewRoot view, FaceletState faceletViewState)
public void pushPartialView(FacesContext context, UIViewRoot view, FaceletState faceletViewState, int count)
protected void clearTransientAndNonFaceletComponentsForStaticView(FacesContext context, UIViewRoot root)
public void clearTransientAndNonFaceletComponentsForDynamicView(FacesContext context, UIViewRoot root, ViewStructureMetadata viewStructureMetadata)
public void processDeferredNavigation(FacesContext facesContext)
public void disposeView(FacesContext facesContext, UIViewRoot root)
Copyright © 2020 The Apache Software Foundation. All rights reserved.