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 TypeMethodDescriptionvoidclearFlowMap(FacesContext facesContext, String clientWindowId) voidcreateCurrentFlowScope(FacesContext facesContext) voiddestroyCurrentFlowScope(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()voidinit()protected booleanisSkipDestroy(Map.Entry<Object, ContextualInstanceInfo<?>> entry) protected ContextualStoragenewContextualStorage(String slotId) voidrefreshClientWindow(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:
initin classAbstractContextualStorageHolder<ContextualStorage>
-
getFlowScopeMap
-
refreshClientWindow
-
clearFlowMap
-
getActiveFlowMapKeys
-
createCurrentFlowScope
-
destroyCurrentFlowScope
-
isSkipDestroy
- Overrides:
isSkipDestroyin classAbstractContextualStorageHolder<ContextualStorage>
-
newContextualStorage
- Specified by:
newContextualStoragein classAbstractContextualStorageHolder<ContextualStorage>
-
getScope
- Specified by:
getScopein classAbstractContextualStorageHolder<ContextualStorage>
-
getInstance
-
getInstance
public static FlowScopeContextualStorageHolder getInstance(FacesContext facesContext, boolean create)
-