org.apache.myfaces.cdi
Class DefaultCDIViewScopeHandler

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

public abstract class DefaultCDIViewScopeHandler
extends ViewScopeProvider

This class handles events related to CDI features. Note the objective of this class is decouple CDI api from JSF so the methods here should not have dependencies with javax.enterprise.* classes, to make cdi jars optional.

Since:
2.2
Author:
Leonardo Uribe

Constructor Summary
DefaultCDIViewScopeHandler()
           
 
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

DefaultCDIViewScopeHandler

public DefaultCDIViewScopeHandler()
Method Detail

onSessionDestroyed

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

createViewScopeMap

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

restoreViewScopeMap

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

generateViewScopeId

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


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