org.apache.myfaces.spi
Class ViewScopeProvider

java.lang.Object
  extended by org.apache.myfaces.spi.ViewScopeProvider
Direct Known Subclasses:
DefaultCDIViewScopeHandler, DefaultViewScopeHandler

public abstract class ViewScopeProvider
extends Object

TODO: (Optional) provide something to cleanup the session when a view is discarded.

Author:
Leonardo Uribe

Constructor Summary
ViewScopeProvider()
           
 
Method Summary
abstract  Map<String,Object> createViewScopeMap(FacesContext facesContext, String viewScopeId)
           
abstract  String generateViewScopeId(FacesContext facesContext)
           
abstract  void onSessionDestroyed()
           
abstract  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

ViewScopeProvider

public ViewScopeProvider()
Method Detail

onSessionDestroyed

public abstract void onSessionDestroyed()

generateViewScopeId

public abstract String generateViewScopeId(FacesContext facesContext)

createViewScopeMap

public abstract Map<String,Object> createViewScopeMap(FacesContext facesContext,
                                                      String viewScopeId)

restoreViewScopeMap

public abstract Map<String,Object> restoreViewScopeMap(FacesContext facesContext,
                                                       String viewScopeId)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.