org.apache.myfaces.view.impl
Class DefaultViewScopeHandler

java.lang.Object
  extended by org.apache.myfaces.spi.ViewScopeProvider
      extended by org.apache.myfaces.view.impl.DefaultViewScopeHandler

public class DefaultViewScopeHandler
extends ViewScopeProvider

Minimal implementation for view scope without CDI but always store the beans into session.

Author:
Leonardo Uribe

Constructor Summary
DefaultViewScopeHandler()
           
 
Method Summary
 Map<String,Object> createViewScopeMap(FacesContext facesContext, String viewScopeId)
           
 void destroyViewScopeMap(FacesContext facesContext, String viewScopeId)
           
 String generateViewScopeId(FacesContext facesContext)
           
 void onSessionDestroyed()
           
 Map<String,Object> restoreViewScopeMap(FacesContext facesContext, String viewScopeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViewScopeHandler

public DefaultViewScopeHandler()
Method Detail

onSessionDestroyed

public void onSessionDestroyed()
Specified by:
onSessionDestroyed in class ViewScopeProvider

createViewScopeMap

public Map<String,Object> createViewScopeMap(FacesContext facesContext,
                                             String viewScopeId)
Specified by:
createViewScopeMap in class ViewScopeProvider

restoreViewScopeMap

public Map<String,Object> restoreViewScopeMap(FacesContext facesContext,
                                              String viewScopeId)
Specified by:
restoreViewScopeMap in class ViewScopeProvider

generateViewScopeId

public String generateViewScopeId(FacesContext facesContext)
Specified by:
generateViewScopeId in class ViewScopeProvider

destroyViewScopeMap

public void destroyViewScopeMap(FacesContext facesContext,
                                String viewScopeId)
Specified by:
destroyViewScopeMap in class ViewScopeProvider


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