public class FacesScopeBeanHolder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FACES_SCOPE_MAP |
static String |
FACES_SCOPE_MAP_INFO |
| Constructor and Description |
|---|
FacesScopeBeanHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyBeans(FacesContext facesContext)
This method properly destroys all current @WindowScoped beans
of the active session and also prepares the storage for new beans.
|
ContextualStorage |
forceNewStorage(FacesContext facesContext)
This method will replace the storageMap and with
a new empty one.
|
static ContextualStorage |
getContextualStorage(javax.enterprise.inject.spi.BeanManager beanManager,
FacesContext facesContext)
This method will return the ContextualStorage or create a new one
if no one is yet assigned to the current flowClientWindowId.
|
ContextualStorage |
getContextualStorageNoCreate(javax.enterprise.inject.spi.BeanManager beanManager,
FacesContext facesContext) |
Map<Object,Object> |
getFacesScopeMap(javax.enterprise.inject.spi.BeanManager beanManager,
FacesContext facesContext,
boolean create) |
void |
init() |
public static final String FACES_SCOPE_MAP
public static final String FACES_SCOPE_MAP_INFO
public void init()
public static ContextualStorage getContextualStorage(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext)
beanManager - we need the CDI BeanManager for serialisation.facesContext - the current FacesContext instancepublic ContextualStorage getContextualStorageNoCreate(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext)
public Map<Object,Object> getFacesScopeMap(javax.enterprise.inject.spi.BeanManager beanManager, FacesContext facesContext, boolean create)
public ContextualStorage forceNewStorage(FacesContext facesContext)
Contextual.destroy(Object, javax.enterprise.context.spi.CreationalContext)
should be performed on the returned old storage map.public void destroyBeans(FacesContext facesContext)
Copyright © 2022 The Apache Software Foundation. All rights reserved.