Package org.apache.myfaces.spi
Class ViewScopeProvider
- java.lang.Object
-
- org.apache.myfaces.spi.ViewScopeProvider
-
- Direct Known Subclasses:
CDIViewScopeProviderImpl
public abstract class ViewScopeProvider extends Object
TODO: (Optional) provide something to cleanup the session when a view is discarded.- Author:
- Leonardo Uribe
-
-
Constructor Summary
Constructors Constructor Description ViewScopeProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Map<String,Object>
createViewScopeMap(FacesContext facesContext, String viewScopeId)
abstract void
destroyViewScopeMap(FacesContext facesContext, String viewScopeId)
abstract String
generateViewScopeId(FacesContext facesContext)
abstract void
onSessionDestroyed()
abstract Map<String,Object>
restoreViewScopeMap(FacesContext facesContext, String viewScopeId)
-
-
-
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)
-
destroyViewScopeMap
public abstract void destroyViewScopeMap(FacesContext facesContext, String viewScopeId)
-
-