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:
-
Field Summary
FieldsFields inherited from class org.apache.myfaces.cdi.util.AbstractContextualStorageHolder
applicationContextBean, beanManager, passivating, storageMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearFlowMap
(FacesContext facesContext, String clientWindowId) void
createCurrentFlowScope
(FacesContext facesContext) void
destroyCurrentFlowScope
(FacesContext facesContext) getActiveFlowMapKeys
(FacesContext facesContext) getFlowScopeMap
(jakarta.enterprise.inject.spi.BeanManager beanManager, String flowClientWindowId, boolean create) getInstance
(FacesContext facesContext) getInstance
(FacesContext facesContext, boolean create) Class<? extends Annotation>
getScope()
void
init()
protected boolean
isSkipDestroy
(Map.Entry<Object, ContextualInstanceInfo<?>> entry) protected ContextualStorage
newContextualStorage
(String slotId) void
refreshClientWindow
(FacesContext facesContext) Methods inherited from class org.apache.myfaces.cdi.util.AbstractContextualStorageHolder
destroyAll, destroyAll, destroyAll, forceNewStorage, getContextualStorage, getContextualStorage, getInstance, getInstance, getStorageMap, isPassivating, preDestroy
-
Field Details
-
CURRENT_FLOW_SCOPE_MAP
- See Also:
-
-
Constructor Details
-
FlowScopeContextualStorageHolder
public FlowScopeContextualStorageHolder()
-
-
Method Details
-
init
@PostConstruct public void init()- Overrides:
init
in classAbstractContextualStorageHolder<ContextualStorage>
-
getFlowScopeMap
-
refreshClientWindow
-
clearFlowMap
-
getActiveFlowMapKeys
-
createCurrentFlowScope
-
destroyCurrentFlowScope
-
isSkipDestroy
- Overrides:
isSkipDestroy
in classAbstractContextualStorageHolder<ContextualStorage>
-
newContextualStorage
- Specified by:
newContextualStorage
in classAbstractContextualStorageHolder<ContextualStorage>
-
getScope
- Specified by:
getScope
in classAbstractContextualStorageHolder<ContextualStorage>
-
getInstance
-
getInstance
public static FlowScopeContextualStorageHolder getInstance(FacesContext facesContext, boolean create)
-