public class ViewScopeContext
extends java.lang.Object
implements javax.enterprise.context.spi.Context, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
LOGGER
Stores the logger.
|
private static long |
serialVersionUID
Stores the serial version UID.
|
Constructor and Description |
---|
ViewScopeContext()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
assertNotReleased()
Assert the context is active, otherwise throw ContextNotActiveException.
|
<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.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Get the class of the scope object.
|
boolean |
isActive()
Determine if the context is active.
|
private static final java.util.logging.Logger LOGGER
private static final long serialVersionUID
private final void assertNotReleased()
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 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope
in interface javax.enterprise.context.spi.Context
public boolean isActive()
isActive
in interface javax.enterprise.context.spi.Context
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.