Package org.apache.myfaces.cdi.view
Class ViewScopeContext
- java.lang.Object
- 
- org.apache.myfaces.cdi.view.ViewScopeContext
 
- 
- All Implemented Interfaces:
- jakarta.enterprise.context.spi.Context
 
 @Typed public class ViewScopeContext extends Object implements jakarta.enterprise.context.spi.Context CDI Context to handle @ViewScopedbeans.- Author:
- Leonardo Uribe
 
- 
- 
Constructor SummaryConstructors Constructor Description ViewScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckActive(FacesContext facesContext)booleandestroy(jakarta.enterprise.context.spi.Contextual bean)static voiddestroyAll(FacesContext facesContext)static voiddestroyAll(FacesContext facesContext, String viewScopeId)<T> Tget(jakarta.enterprise.context.spi.Contextual<T> bean)<T> Tget(jakarta.enterprise.context.spi.Contextual<T> bean, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)protected ViewScopeContextualStoragegetContextualStorage(FacesContext facesContext, boolean createIfNotExist)StringgetCurrentViewScopeId(boolean create)Class<? extends Annotation>getScope()protected ViewScopeContextualStorageHoldergetStorageHolder(FacesContext facesContext)booleanisActive()booleanisActive(FacesContext facesContext)
 
- 
- 
- 
Method Detail- 
getStorageHolderprotected ViewScopeContextualStorageHolder getStorageHolder(FacesContext facesContext) 
 - 
getCurrentViewScopeIdpublic String getCurrentViewScopeId(boolean create) 
 - 
getContextualStorageprotected ViewScopeContextualStorage getContextualStorage(FacesContext facesContext, boolean createIfNotExist) 
 - 
getScopepublic Class<? extends Annotation> getScope() - Specified by:
- getScopein interface- jakarta.enterprise.context.spi.Context
 
 - 
isActivepublic boolean isActive() - Specified by:
- isActivein interface- jakarta.enterprise.context.spi.Context
 
 - 
isActivepublic boolean isActive(FacesContext facesContext) 
 - 
getpublic <T> T get(jakarta.enterprise.context.spi.Contextual<T> bean) - Specified by:
- getin interface- jakarta.enterprise.context.spi.Context
 
 - 
getpublic <T> T get(jakarta.enterprise.context.spi.Contextual<T> bean, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)- Specified by:
- getin interface- jakarta.enterprise.context.spi.Context
 
 - 
checkActiveprotected void checkActive(FacesContext facesContext) 
 - 
destroypublic boolean destroy(jakarta.enterprise.context.spi.Contextual bean) 
 - 
destroyAllpublic static void destroyAll(FacesContext facesContext) 
 - 
destroyAllpublic static void destroyAll(FacesContext facesContext, String viewScopeId) 
 
- 
 
-