public class ViewScopeContext extends Object implements jakarta.enterprise.context.spi.Context, Serializable
| Constructor and Description |
|---|
ViewScopeContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(jakarta.enterprise.context.spi.Contextual<T> contextual)
Get the ViewScoped bean for the given contextual.
|
<T> T |
get(jakarta.enterprise.context.spi.Contextual<T> contextual,
jakarta.enterprise.context.spi.CreationalContext<T> creational)
Get the existing instance of the ViewScoped bean for the given contextual or create a new one.
|
Class<? extends Annotation> |
getScope()
Get the class of the scope object.
|
boolean |
isActive()
Determine if the context is active.
|
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual)
get in interface jakarta.enterprise.context.spi.ContextT - the type.contextual - the contextual.public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual,
jakarta.enterprise.context.spi.CreationalContext<T> creational)
get in interface jakarta.enterprise.context.spi.ContextT - the type.contextual - the contextual.creational - the creational.jakarta.enterprise.context.ContextNotActiveException - when the context is not active.public Class<? extends Annotation> getScope()
getScope in interface jakarta.enterprise.context.spi.Contextpublic boolean isActive()
isActive in interface jakarta.enterprise.context.spi.ContextCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.