@Typed public class ViewTransientScopedContextImpl extends Object implements jakarta.enterprise.context.spi.Context
| Constructor and Description | 
|---|
| ViewTransientScopedContextImpl(jakarta.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(jakarta.enterprise.context.spi.Contextual bean)Destroy the Contextual Instance of the given Bean. | 
| static void | destroyAllActive(ContextualStorage storage)Destroys all the Contextual Instances in the specified ContextualStorage. | 
| <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(boolean createIfNotExist,
                    FacesContext facesContext)An implementation has to return the underlying storage which
 contains the items held in the Context. | 
| Class<? extends Annotation> | getScope() | 
| protected ViewTransientScopeBeanHolder | getViewTransientScopeBeanHolder() | 
| protected ViewTransientScopeBeanHolder | getViewTransientScopeBeanHolder(FacesContext facesContext) | 
| boolean | isActive() | 
| boolean | isActive(FacesContext facesContext) | 
public ViewTransientScopedContextImpl(jakarta.enterprise.inject.spi.BeanManager beanManager)
protected ViewTransientScopeBeanHolder getViewTransientScopeBeanHolder()
protected ViewTransientScopeBeanHolder getViewTransientScopeBeanHolder(FacesContext facesContext)
protected ContextualStorage getContextualStorage(boolean createIfNotExist, FacesContext facesContext)
createIfNotExist - whether a ContextualStorage shall get created if it doesn't yet exist.public Class<? extends Annotation> getScope()
getScope in interface jakarta.enterprise.context.spi.Contextpublic boolean isActive()
isActive in interface jakarta.enterprise.context.spi.Contextpublic boolean isActive(FacesContext facesContext)
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> bean)
get in interface jakarta.enterprise.context.spi.Contextpublic <T> T get(jakarta.enterprise.context.spi.Contextual<T> bean,
                 jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
get in interface jakarta.enterprise.context.spi.Contextpublic boolean destroy(jakarta.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.public static void destroyAllActive(ContextualStorage storage)
protected void checkActive(FacesContext facesContext)
jakarta.enterprise.context.ContextNotActiveException - if there is no active
         Context for the current Thread.Copyright © 2021 The Apache Software Foundation. All rights reserved.