Class ClientWindowScopeContext
- java.lang.Object
-
- org.apache.myfaces.cdi.clientwindow.ClientWindowScopeContext
-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Context
@Typed public class ClientWindowScopeContext extends Object implements jakarta.enterprise.context.spi.Context
Minimal implementation of ClientWindowScope.
-
-
Constructor Summary
Constructors Constructor Description ClientWindowScopeContext(jakarta.enterprise.inject.spi.BeanManager beanManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkActive(FacesContext facesContext)
boolean
destroy(jakarta.enterprise.context.spi.Contextual bean)
static void
destroyAll(FacesContext facesContext)
static void
destroyAll(FacesContext context, String clientWindowId)
<T> T
get(jakarta.enterprise.context.spi.Contextual<T> bean)
<T> T
get(jakarta.enterprise.context.spi.Contextual<T> bean, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
protected ContextualStorage
getContextualStorage(FacesContext facesContext, boolean createIfNotExist)
protected String
getCurrentClientWindowId(FacesContext context)
Class<? extends Annotation>
getScope()
protected ClientWindowScopeContextualStorageHolder
getStorageHolder(FacesContext context)
boolean
isActive()
boolean
isActive(FacesContext facesContext)
static void
pushClientWindow(FacesContext context, ClientWindow clientWindow)
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope
in interfacejakarta.enterprise.context.spi.Context
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfacejakarta.enterprise.context.spi.Context
-
isActive
public boolean isActive(FacesContext facesContext)
-
getContextualStorage
protected ContextualStorage getContextualStorage(FacesContext facesContext, boolean createIfNotExist)
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> bean)
- Specified by:
get
in 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:
get
in interfacejakarta.enterprise.context.spi.Context
-
checkActive
protected void checkActive(FacesContext facesContext)
-
getStorageHolder
protected ClientWindowScopeContextualStorageHolder getStorageHolder(FacesContext context)
-
getCurrentClientWindowId
protected String getCurrentClientWindowId(FacesContext context)
-
destroy
public boolean destroy(jakarta.enterprise.context.spi.Contextual bean)
-
destroyAll
public static void destroyAll(FacesContext facesContext)
-
destroyAll
public static void destroyAll(FacesContext context, String clientWindowId)
-
pushClientWindow
public static void pushClientWindow(FacesContext context, ClientWindow clientWindow)
-
-