- 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> Tget(Contextual<T> type)<T> Tget(Contextual<T> type, CreationalContext<T> context)Class<? extends Annotation>getScope()ReturnsViewScopedclass.booleanisActive()Returnstrueif there is aFacesContext, and it has aUIViewRoot, andisInitialized()has returnedtrue.
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
ReturnsViewScopedclass.
-
isActive
public boolean isActive()
Returnstrueif 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)
-
-