public class ViewScopeContext extends Object implements Context
ViewScoped annotation wherein beans are managed by ViewScopeManager.ViewScoped,
ViewScopeManager| Constructor and Description |
|---|
ViewScopeContext(BeanManager manager,
Bean<ViewScopeManager> bean)
Construct a new view scope context.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Contextual<T> type) |
<T> T |
get(Contextual<T> type,
CreationalContext<T> context) |
Class<? extends Annotation> |
getScope()
Returns
ViewScoped class. |
boolean |
isActive()
Returns
true if there is a FacesContext, and it has a UIViewRoot, and
isInitialized() has returned true. |
public ViewScopeContext(BeanManager manager, Bean<ViewScopeManager> bean)
manager - The bean manager.bean - The view scope manager bean.public Class<? extends Annotation> getScope()
ViewScoped class.public boolean isActive()
true if there is a FacesContext, and it has a UIViewRoot, and
isInitialized() has returned true.public <T> T get(Contextual<T> type)
public <T> T get(Contextual<T> type, CreationalContext<T> context)