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 Summary
Constructors Constructor Description FlowScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager, Map<Class,FlowReference> flowBeanReferences)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckActive(FacesContext facesContext)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
-
FlowScopeContext
public FlowScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager, Map<Class,FlowReference> flowBeanReferences)
-
-
Method Detail
-
getStorageHolder
protected FlowScopeContextualStorageHolder getStorageHolder(FacesContext facesContext)
-
getCurrentClientWindowFlowId
public String getCurrentClientWindowFlowId(FacesContext facesContext)
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScopein interfacejakarta.enterprise.context.spi.Context
-
isActive
public boolean isActive()
- Specified by:
isActivein interfacejakarta.enterprise.context.spi.Context
-
isActive
public boolean isActive(FacesContext facesContext)
-
checkActive
protected void checkActive(FacesContext facesContext)
-
isPassivatingScope
public boolean isPassivatingScope()
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> bean)
- Specified by:
getin interfacejakarta.enterprise.context.spi.Context
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> bean, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)- Specified by:
getin interfacejakarta.enterprise.context.spi.Context
-
getContextualStorage
protected ContextualStorage getContextualStorage(FacesContext context, boolean createIfNotExist, String clientWindowFlowId)
-
destroyAll
public static void destroyAll(FacesContext facesContext)
-
-