org.apache.myfaces.view.facelets.pool.impl
Class ViewPoolImpl

java.lang.Object
  extended by org.apache.myfaces.view.facelets.pool.ViewPool
      extended by org.apache.myfaces.view.facelets.pool.impl.ViewPoolImpl

public class ViewPoolImpl
extends ViewPool

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
ViewPoolImpl(FacesContext facesContext, Map<String,String> parameters)
           
 
Method Summary
protected  MetadataViewKey deriveViewKey(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  DynamicViewKey generateDynamicStructureViewKey(FacesContext facesContext, UIViewRoot root, FaceletState faceletDynamicState)
           
protected  ViewEntry generateViewEntry(FacesContext facesContext, UIViewRoot root)
           
 boolean isDeferredNavigationEnabled()
          Indicate if the view pool uses deferred navigation.
 boolean isWorthToRecycleThisView(FacesContext context, UIViewRoot root)
           
protected  ViewEntry popDynamicStructureView(FacesContext context, UIViewRoot root, DynamicViewKey key)
           
 ViewEntry popDynamicStructureView(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState)
           
protected  ViewEntry popPartialStructureView(FacesContext context, MetadataViewKey key)
           
 ViewEntry popStaticOrPartialStructureView(FacesContext context, UIViewRoot root)
           
protected  ViewEntry popStaticStructureView(FacesContext context, MetadataViewKey key)
           
protected  void pushDynamicStructureView(FacesContext context, UIViewRoot root, DynamicViewKey key, ViewEntry entry)
           
 void pushDynamicStructureView(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState)
           
protected  void pushPartialStructureView(FacesContext context, MetadataViewKey key, ViewEntry entry)
           
 void pushPartialStructureView(FacesContext context, UIViewRoot root)
           
protected  void pushStaticStructureView(FacesContext context, MetadataViewKey key, ViewEntry entry)
           
 void pushStaticStructureView(FacesContext context, UIViewRoot root)
           
 ViewStructureMetadata retrieveDynamicViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState)
           
 ViewStructureMetadata retrieveStaticViewStructureMetadata(FacesContext context, UIViewRoot root)
           
 void storeDynamicViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState)
           
 void storeStaticViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewPoolImpl

public ViewPoolImpl(FacesContext facesContext,
                    Map<String,String> parameters)
Method Detail

pushStaticStructureView

protected void pushStaticStructureView(FacesContext context,
                                       MetadataViewKey key,
                                       ViewEntry entry)

popStaticStructureView

protected ViewEntry popStaticStructureView(FacesContext context,
                                           MetadataViewKey key)

pushPartialStructureView

protected void pushPartialStructureView(FacesContext context,
                                        MetadataViewKey key,
                                        ViewEntry entry)

popPartialStructureView

protected ViewEntry popPartialStructureView(FacesContext context,
                                            MetadataViewKey key)

deriveViewKey

protected MetadataViewKey deriveViewKey(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. By default, the "view" params are the viewId, the locale, the renderKit and the contracts associated to the view.

Parameters:
facesContext -
root -
Returns:

generateViewEntry

protected ViewEntry generateViewEntry(FacesContext facesContext,
                                      UIViewRoot root)

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

public void pushStaticStructureView(FacesContext context,
                                    UIViewRoot root)
Specified by:
pushStaticStructureView in class ViewPool

popStaticOrPartialStructureView

public ViewEntry popStaticOrPartialStructureView(FacesContext context,
                                                 UIViewRoot root)
Specified by:
popStaticOrPartialStructureView in class ViewPool

pushDynamicStructureView

public void pushDynamicStructureView(FacesContext context,
                                     UIViewRoot root,
                                     FaceletState faceletDynamicState)
Specified by:
pushDynamicStructureView in class ViewPool

popDynamicStructureView

public ViewEntry popDynamicStructureView(FacesContext context,
                                         UIViewRoot root,
                                         FaceletState faceletDynamicState)
Specified by:
popDynamicStructureView in class ViewPool

pushPartialStructureView

public void pushPartialStructureView(FacesContext context,
                                     UIViewRoot root)
Specified by:
pushPartialStructureView in class ViewPool

isWorthToRecycleThisView

public boolean isWorthToRecycleThisView(FacesContext context,
                                        UIViewRoot root)
Specified by:
isWorthToRecycleThisView in class ViewPool

storeStaticViewStructureMetadata

public void storeStaticViewStructureMetadata(FacesContext context,
                                             UIViewRoot root,
                                             FaceletState faceletState)
Specified by:
storeStaticViewStructureMetadata in class ViewPool

retrieveStaticViewStructureMetadata

public ViewStructureMetadata retrieveStaticViewStructureMetadata(FacesContext context,
                                                                 UIViewRoot root)
Specified by:
retrieveStaticViewStructureMetadata in class ViewPool

storeDynamicViewStructureMetadata

public void storeDynamicViewStructureMetadata(FacesContext context,
                                              UIViewRoot root,
                                              FaceletState faceletDynamicState)
Specified by:
storeDynamicViewStructureMetadata in class ViewPool

retrieveDynamicViewStructureMetadata

public ViewStructureMetadata retrieveDynamicViewStructureMetadata(FacesContext context,
                                                                  UIViewRoot root,
                                                                  FaceletState faceletDynamicState)
Specified by:
retrieveDynamicViewStructureMetadata in class ViewPool

isDeferredNavigationEnabled

public boolean isDeferredNavigationEnabled()
Description copied from class: ViewPool
Indicate if the view pool uses deferred navigation.

Specified by:
isDeferredNavigationEnabled in class ViewPool
Returns:
the deferredNavigation


Copyright © 2014 The Apache Software Foundation. All rights reserved.