Package org.apache.myfaces.cdi
Class FacesScopeContext
- java.lang.Object
- 
- org.apache.myfaces.cdi.FacesScopeContext
 
- 
- All Implemented Interfaces:
- jakarta.enterprise.context.spi.Context
 
 @Typed public class FacesScopeContext extends Object implements jakarta.enterprise.context.spi.Context Minimal implementation of FacesScope.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringFACES_SCOPED_STORAGE
 - 
Constructor SummaryConstructors Constructor Description FacesScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckActive(FacesContext facesContext)Make sure that the Context is really active.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()
 
- 
- 
- 
Field Detail- 
FACES_SCOPED_STORAGEpublic static final String FACES_SCOPED_STORAGE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
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
 
 - 
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) Make sure that the Context is really active.- Parameters:
- facesContext-
- Throws:
- jakarta.enterprise.context.ContextNotActiveException- if there is no active Context for the current Thread.
 
 - 
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
 
 - 
destroyAllpublic static void destroyAll(FacesContext facesContext) 
 
- 
 
-