public class ViewScopeContext extends Object implements javax.enterprise.context.spi.Context, Serializable
Constructor and Description |
---|
ViewScopeContext()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(javax.enterprise.context.spi.Contextual<T> contextual)
Get the ViewScoped bean for the given contextual.
|
<T> T |
get(javax.enterprise.context.spi.Contextual<T> contextual,
javax.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(javax.enterprise.context.spi.Contextual<T> contextual)
get
in interface javax.enterprise.context.spi.Context
T
- the type.contextual
- the contextual.public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual, javax.enterprise.context.spi.CreationalContext<T> creational)
get
in interface javax.enterprise.context.spi.Context
T
- the type.contextual
- the contextual.creational
- the creational.javax.enterprise.context.ContextNotActiveException
- when the context is not active.public Class<? extends Annotation> getScope()
getScope
in interface javax.enterprise.context.spi.Context
public boolean isActive()
isActive
in interface javax.enterprise.context.spi.Context
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.