Package org.apache.myfaces.cdi.view
Class ViewTransientScopeContext
java.lang.Object
org.apache.myfaces.cdi.view.ViewTransientScopeContext
- All Implemented Interfaces:
- jakarta.enterprise.context.spi.Context
@Typed
public class ViewTransientScopeContext
extends Object
implements jakarta.enterprise.context.spi.Context
Minimal implementation of ViewTransientScope.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionViewTransientScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcheckActive(FacesContext facesContext) Make sure that the context is really active.booleandestroy(jakarta.enterprise.context.spi.Contextual bean) Destroy the Contextual Instance of the given Bean.static voiddestroyAll(FacesContext facesContext) <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(boolean createIfNotExist, FacesContext facesContext) An implementation has to return the underlying storage which contains the items held in the Context.Class<? extends Annotation>getScope()booleanisActive()booleanisActive(FacesContext facesContext) 
- 
Field Details- 
VIEW_TRANSIENT_SCOPED_STORAGE- See Also:
 
 
- 
- 
Constructor Details- 
ViewTransientScopeContextpublic ViewTransientScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager) 
 
- 
- 
Method Details- 
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
 
- 
getContextualStorageprotected ContextualStorage getContextualStorage(boolean createIfNotExist, FacesContext facesContext) An implementation has to return the underlying storage which contains the items held in the Context.- Parameters:
- createIfNotExist- whether a ContextualStorage shall get created if it doesn't yet exist.
- facesContext-
- Returns:
- the underlying storage
 
- 
checkActiveMake sure that the context is really active.- Parameters:
- facesContext- the current- FacesContext.
- Throws:
- jakarta.enterprise.context.ContextNotActiveException- if there is no active context for the current thread.
 
- 
destroypublic boolean destroy(jakarta.enterprise.context.spi.Contextual bean) Destroy the Contextual Instance of the given Bean.- Parameters:
- bean- dictates which bean shall get cleaned up
- Returns:
- trueif the bean was destroyed,- falseif there was no such bean.
 
- 
destroyAll
 
-