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 @
ViewScoped beans.- Author:
- Leonardo Uribe
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected 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 ContextualStoragegetContextualStorage(FacesContext facesContext, boolean createIfNotExist) getCurrentViewScopeId(boolean create) Class<? extends Annotation>getScope()protected ViewScopeContextualStorageHoldergetStorageHolder(FacesContext facesContext) booleanisActive()booleanisActive(FacesContext facesContext) 
- 
Constructor Details- 
ViewScopeContextpublic ViewScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager) 
 
- 
- 
Method Details- 
getStorageHolder
- 
getCurrentViewScopeId
- 
getContextualStorageprotected ContextualStorage getContextualStorage(FacesContext facesContext, boolean createIfNotExist) 
- 
getScope- Specified by:
- getScopein interface- jakarta.enterprise.context.spi.Context
 
- 
isActivepublic boolean isActive()- Specified by:
- isActivein interface- jakarta.enterprise.context.spi.Context
 
- 
isActive
- 
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
 
- 
checkActive
- 
destroypublic boolean destroy(jakarta.enterprise.context.spi.Contextual bean) 
- 
destroyAll
- 
destroyAll
 
-