Package org.apache.myfaces.flow.cdi
Class FlowScopeContextualStorageHolder
- java.lang.Object
- 
- org.apache.myfaces.cdi.util.AbstractContextualStorageHolder<ContextualStorage>
- 
- org.apache.myfaces.flow.cdi.FlowScopeContextualStorageHolder
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 @Typed(FlowScopeContextualStorageHolder.class) @SessionScoped public class FlowScopeContextualStorageHolder extends AbstractContextualStorageHolder<ContextualStorage> implements Serializable This holder will store the flow scope active ids and it's beans for the current HTTP Session. We use standard SessionScoped bean to not need to treat async-supported and similar headache.- Author:
- lu4242
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCURRENT_FLOW_SCOPE_MAP- 
Fields inherited from class org.apache.myfaces.cdi.util.AbstractContextualStorageHolderapplicationContextBean, beanManager, storageMap
 
- 
 - 
Constructor SummaryConstructors Constructor Description FlowScopeContextualStorageHolder()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearFlowMap(FacesContext facesContext, String clientWindowId)voidcreateCurrentFlowScope(FacesContext facesContext)voiddestroyCurrentFlowScope(FacesContext facesContext)List<String>getActiveFlowMapKeys(FacesContext facesContext)Map<Object,Object>getFlowScopeMap(jakarta.enterprise.inject.spi.BeanManager beanManager, String flowClientWindowId, boolean create)static FlowScopeContextualStorageHoldergetInstance(FacesContext facesContext)static FlowScopeContextualStorageHoldergetInstance(FacesContext facesContext, boolean create)voidinit()protected booleanisSkipDestroy(Map.Entry<Object,ContextualInstanceInfo<?>> entry)protected ContextualStoragenewContextualStorage(String slotId)voidrefreshClientWindow(FacesContext facesContext)- 
Methods inherited from class org.apache.myfaces.cdi.util.AbstractContextualStorageHolderdestroyAll, destroyAll, destroyAll, forceNewStorage, getContextualStorage, getContextualStorage, getInstance, getInstance, getStorageMap, preDestroy
 
- 
 
- 
- 
- 
Field Detail- 
CURRENT_FLOW_SCOPE_MAPpublic static final String CURRENT_FLOW_SCOPE_MAP - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
init@PostConstruct public void init() - Overrides:
- initin class- AbstractContextualStorageHolder<ContextualStorage>
 
 - 
getFlowScopeMappublic Map<Object,Object> getFlowScopeMap(jakarta.enterprise.inject.spi.BeanManager beanManager, String flowClientWindowId, boolean create) 
 - 
refreshClientWindowpublic void refreshClientWindow(FacesContext facesContext) 
 - 
clearFlowMappublic void clearFlowMap(FacesContext facesContext, String clientWindowId) 
 - 
getActiveFlowMapKeyspublic List<String> getActiveFlowMapKeys(FacesContext facesContext) 
 - 
createCurrentFlowScopepublic void createCurrentFlowScope(FacesContext facesContext) 
 - 
destroyCurrentFlowScopepublic void destroyCurrentFlowScope(FacesContext facesContext) 
 - 
isSkipDestroyprotected boolean isSkipDestroy(Map.Entry<Object,ContextualInstanceInfo<?>> entry) - Overrides:
- isSkipDestroyin class- AbstractContextualStorageHolder<ContextualStorage>
 
 - 
newContextualStorageprotected ContextualStorage newContextualStorage(String slotId) - Specified by:
- newContextualStoragein class- AbstractContextualStorageHolder<ContextualStorage>
 
 - 
getInstancepublic static FlowScopeContextualStorageHolder getInstance(FacesContext facesContext) 
 - 
getInstancepublic static FlowScopeContextualStorageHolder getInstance(FacesContext facesContext, boolean create) 
 
- 
 
-