@Typed public class ViewTransientScopeContext extends Object implements javax.enterprise.context.spi.Context
| Modifier and Type | Field and Description |
|---|---|
static String |
VIEW_TRANSIENT_SCOPE_MAP |
| Constructor and Description |
|---|
ViewTransientScopeContext(javax.enterprise.inject.spi.BeanManager beanManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkActive(FacesContext facesContext)
Make sure that the Context is really active.
|
boolean |
destroy(javax.enterprise.context.spi.Contextual bean)
Destroy the Contextual Instance of the given Bean.
|
static void |
destroyAllActive(FacesContext facesContext) |
<T> T |
get(javax.enterprise.context.spi.Contextual<T> bean) |
<T> T |
get(javax.enterprise.context.spi.Contextual<T> bean,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
protected ContextualStorage |
getContextualStorage(boolean createIfNotExist,
FacesContext facesContext)
An implementation has to return the underlying storage which
contains the items held in the Context.
|
Class<? extends Annotation> |
getScope() |
boolean |
isActive() |
boolean |
isActive(FacesContext facesContext) |
public static final String VIEW_TRANSIENT_SCOPE_MAP
public ViewTransientScopeContext(javax.enterprise.inject.spi.BeanManager beanManager)
protected ContextualStorage getContextualStorage(boolean createIfNotExist, FacesContext facesContext)
createIfNotExist - whether a ContextualStorage shall get created if it doesn't yet exist.facesContext - public Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.context.spi.Contextpublic boolean isActive()
isActive in interface javax.enterprise.context.spi.Contextpublic boolean isActive(FacesContext facesContext)
public <T> T get(javax.enterprise.context.spi.Contextual<T> bean)
get in interface javax.enterprise.context.spi.Contextpublic <T> T get(javax.enterprise.context.spi.Contextual<T> bean,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
get in interface javax.enterprise.context.spi.Contextpublic boolean destroy(javax.enterprise.context.spi.Contextual bean)
bean - dictates which bean shall get cleaned uptrue if the bean was destroyed, false if there was no such bean.protected void checkActive(FacesContext facesContext)
javax.enterprise.context.ContextNotActiveException - if there is no active
Context for the current Thread.public static void destroyAllActive(FacesContext facesContext)
Copyright © 2022 The Apache Software Foundation. All rights reserved.