Class ViewPoolImpl
java.lang.Object
org.apache.myfaces.view.facelets.pool.ViewPool
org.apache.myfaces.view.facelets.pool.impl.ViewPoolImpl
- Author:
- Leonardo Uribe
-
Field Summary
Fields inherited from class org.apache.myfaces.view.facelets.pool.ViewPool
ENTRY_MODE_SOFT, ENTRY_MODE_WEAK, INIT_PARAM_VIEW_POOL_DEFERRED_NAVIGATION, INIT_PARAM_VIEW_POOL_ENTRY_MODE, INIT_PARAM_VIEW_POOL_ENTRY_MODE_DEFAULT, INIT_PARAM_VIEW_POOL_MAX_DYNAMIC_PARTIAL_LIMIT, INIT_PARAM_VIEW_POOL_MAX_DYNAMIC_PARTIAL_LIMIT_DEFAULT, INIT_PARAM_VIEW_POOL_MAX_POOL_SIZE, INIT_PARAM_VIEW_POOL_MAX_POOL_SIZE_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MetadataViewKeyderiveViewKey(FacesContext facesContext, UIViewRoot root) Generates an unique key according to the metadata information stored in the passed UIViewRoot instance that can affect the way how the view is generated.protected DynamicViewKeygenerateDynamicStructureViewKey(FacesContext facesContext, UIViewRoot root, FaceletState faceletDynamicState) protected ViewEntrygenerateViewEntry(FacesContext facesContext, UIViewRoot root) booleanIndicate if the view pool uses deferred navigation.booleanisWorthToRecycleThisView(FacesContext context, UIViewRoot root) protected ViewEntrypopDynamicStructureView(FacesContext context, UIViewRoot root, DynamicViewKey key) popDynamicStructureView(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) protected ViewEntrypopPartialStructureView(FacesContext context, MetadataViewKey key) popStaticOrPartialStructureView(FacesContext context, UIViewRoot root) protected ViewEntrypopStaticStructureView(FacesContext context, MetadataViewKey key) protected voidpushDynamicStructureView(FacesContext context, UIViewRoot root, DynamicViewKey key, ViewEntry entry) voidpushDynamicStructureView(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) voidpushPartialStructureView(FacesContext context, UIViewRoot root) protected voidpushPartialStructureView(FacesContext context, MetadataViewKey key, ViewEntry entry) voidpushStaticStructureView(FacesContext context, UIViewRoot root) protected voidpushStaticStructureView(FacesContext context, MetadataViewKey key, ViewEntry entry) retrieveDynamicViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) retrieveStaticViewStructureMetadata(FacesContext context, UIViewRoot root) voidstoreDynamicViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) voidstoreStaticViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletState)
-
Constructor Details
-
ViewPoolImpl
-
-
Method Details
-
pushStaticStructureView
-
popStaticStructureView
-
pushPartialStructureView
-
popPartialStructureView
-
deriveViewKey
Generates an unique key according to the metadata information stored in the passed UIViewRoot instance that can affect the way how the view is generated. By default, the "view" params are the viewId, the locale, the renderKit and the contracts associated to the view.- Parameters:
facesContext-root-- Returns:
-
generateViewEntry
-
generateDynamicStructureViewKey
protected DynamicViewKey generateDynamicStructureViewKey(FacesContext facesContext, UIViewRoot root, FaceletState faceletDynamicState) -
pushDynamicStructureView
protected void pushDynamicStructureView(FacesContext context, UIViewRoot root, DynamicViewKey key, ViewEntry entry) -
popDynamicStructureView
protected ViewEntry popDynamicStructureView(FacesContext context, UIViewRoot root, DynamicViewKey key) -
pushStaticStructureView
- Specified by:
pushStaticStructureViewin classViewPool
-
popStaticOrPartialStructureView
- Specified by:
popStaticOrPartialStructureViewin classViewPool
-
pushDynamicStructureView
public void pushDynamicStructureView(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) - Specified by:
pushDynamicStructureViewin classViewPool
-
popDynamicStructureView
public ViewEntry popDynamicStructureView(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) - Specified by:
popDynamicStructureViewin classViewPool
-
pushPartialStructureView
- Specified by:
pushPartialStructureViewin classViewPool
-
isWorthToRecycleThisView
- Specified by:
isWorthToRecycleThisViewin classViewPool
-
storeStaticViewStructureMetadata
public void storeStaticViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletState) - Specified by:
storeStaticViewStructureMetadatain classViewPool
-
retrieveStaticViewStructureMetadata
public ViewStructureMetadata retrieveStaticViewStructureMetadata(FacesContext context, UIViewRoot root) - Specified by:
retrieveStaticViewStructureMetadatain classViewPool
-
storeDynamicViewStructureMetadata
public void storeDynamicViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) - Specified by:
storeDynamicViewStructureMetadatain classViewPool
-
retrieveDynamicViewStructureMetadata
public ViewStructureMetadata retrieveDynamicViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) - Specified by:
retrieveDynamicViewStructureMetadatain classViewPool
-