- java.lang.Object
-
- org.omnifaces.cdi.viewscope.ViewScopeContext
-
- All Implemented Interfaces:
Context
public class ViewScopeContext extends Object implements Context
- Since:
- 1.6
- Author:
- Radu Creanga <rdcrng@gmail.com>, Bauke Scholtz
- See Also:
ViewScoped
,ViewScopeManager
-
-
Constructor Summary
Constructors Constructor Description ViewScopeContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(Contextual<T> type)
<T> T
get(Contextual<T> type, CreationalContext<T> context)
Class<? extends Annotation>
getScope()
ReturnsViewScoped
class.boolean
isActive()
Returnstrue
if there is aFacesContext
, and it has aUIViewRoot
, andisInitialized()
has returnedtrue
.
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
ReturnsViewScoped
class.
-
isActive
public boolean isActive()
Returnstrue
if there is aFacesContext
, and it has aUIViewRoot
, andisInitialized()
has returnedtrue
.
-
get
public <T> T get(Contextual<T> type)
-
get
public <T> T get(Contextual<T> type, CreationalContext<T> context)
-
-