Package org.apache.myfaces.cdi.view
Class ViewTransientScopeBeanHolder
- java.lang.Object
-
- org.apache.myfaces.cdi.view.ViewTransientScopeBeanHolder
-
public class ViewTransientScopeBeanHolder extends Object
Stateless class to deal with ViewTransientScope. This scope depends on the current FacesContext.
-
-
Field Summary
Fields Modifier and Type Field Description static StringVIEW_TRANSIENT_SCOPE_MAPstatic StringVIEW_TRANSIENT_SCOPE_MAP_INFO
-
Constructor Summary
Constructors Constructor Description ViewTransientScopeBeanHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyBeans(FacesContext facesContext)ContextualStorageforceNewStorage(FacesContext facesContext)This method will replace the storageMap and with a new empty one.ContextualStoragegetContextualStorage(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext)ContextualStoragegetContextualStorageNoCreate(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext)Map<Object,Object>getViewTransientScopeMap(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext, boolean create)voidinit()
-
-
-
Field Detail
-
VIEW_TRANSIENT_SCOPE_MAP
public static final String VIEW_TRANSIENT_SCOPE_MAP
- See Also:
- Constant Field Values
-
VIEW_TRANSIENT_SCOPE_MAP_INFO
public static final String VIEW_TRANSIENT_SCOPE_MAP_INFO
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
-
getContextualStorage
public ContextualStorage getContextualStorage(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext)
-
getContextualStorageNoCreate
public ContextualStorage getContextualStorageNoCreate(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext)
-
getViewTransientScopeMap
public Map<Object,Object> getViewTransientScopeMap(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext, boolean create)
-
forceNewStorage
public ContextualStorage forceNewStorage(FacesContext facesContext)
This method will replace the storageMap and with a new empty one.- Parameters:
facesContext-- Returns:
- the old storageMap.
-
destroyBeans
public void destroyBeans(FacesContext facesContext)
-
-