Package org.apache.myfaces.flow.cdi
Class FlowScopeContext
- java.lang.Object
- 
- org.apache.myfaces.flow.cdi.FlowScopeContext
 
- 
- All Implemented Interfaces:
- jakarta.enterprise.context.spi.Context
 
 @Typed public class FlowScopeContext extends Object implements jakarta.enterprise.context.spi.Context Implementation of FlowScope.- Author:
- Leonardo Uribe
 
- 
- 
Constructor SummaryConstructors Constructor Description FlowScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager, Map<Class,FlowReference> flowBeanReferences)
 - 
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)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(FacesContext context, boolean createIfNotExist, String clientWindowFlowId)StringgetCurrentClientWindowFlowId(FacesContext facesContext)Class<? extends Annotation>getScope()protected FlowScopeContextualStorageHoldergetStorageHolder(FacesContext facesContext)booleanisActive()booleanisActive(FacesContext facesContext)booleanisPassivatingScope()
 
- 
- 
- 
Constructor Detail- 
FlowScopeContextpublic FlowScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager, Map<Class,FlowReference> flowBeanReferences)
 
- 
 - 
Method Detail- 
getStorageHolderprotected FlowScopeContextualStorageHolder getStorageHolder(FacesContext facesContext) 
 - 
getCurrentClientWindowFlowIdpublic String getCurrentClientWindowFlowId(FacesContext facesContext) 
 - 
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) 
 - 
checkActiveprotected void checkActive(FacesContext facesContext) 
 - 
isPassivatingScopepublic boolean isPassivatingScope() 
 - 
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(FacesContext context, boolean createIfNotExist, String clientWindowFlowId) 
 - 
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.
 
 - 
destroyAllpublic static void destroyAll(FacesContext facesContext) 
 
- 
 
-