java.lang.Object
com.sun.faces.application.view.ViewScopeContext
- All Implemented Interfaces:
Context
,Serializable
The CDI context for CDI ViewScoped beans.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
get
(Contextual<T> contextual) Get the ViewScoped bean for the given contextual.<T> T
get
(Contextual<T> contextual, 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.
-
Constructor Details
-
ViewScopeContext
public ViewScopeContext()Constructor.
-
-
Method Details
-
get
Get the ViewScoped bean for the given contextual. -
get
Get the existing instance of the ViewScoped bean for the given contextual or create a new one.- Specified by:
get
in interfaceContext
- Type Parameters:
T
- the type.- Parameters:
contextual
- the contextual.creational
- the creational.- Returns:
- the instance.
- Throws:
ContextNotActiveException
- when the context is not active.
-
getScope
Get the class of the scope object. -
isActive
-