public class ViewScopeContext extends Object implements javax.enterprise.context.spi.Context
ViewScoped
annotation wherein beans are managed by ViewScopeManager
.ViewScoped
,
ViewScopeManager
Constructor and Description |
---|
ViewScopeContext(javax.enterprise.inject.spi.BeanManager manager,
javax.enterprise.inject.spi.Bean<ViewScopeManager> bean)
Construct a new view scope context.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(javax.enterprise.context.spi.Contextual<T> type) |
<T> T |
get(javax.enterprise.context.spi.Contextual<T> type,
javax.enterprise.context.spi.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(javax.enterprise.inject.spi.BeanManager manager, javax.enterprise.inject.spi.Bean<ViewScopeManager> bean)
manager
- The bean manager.bean
- The view scope manager bean.public Class<? extends Annotation> getScope()
ViewScoped
class.getScope
in interface javax.enterprise.context.spi.Context
public boolean isActive()
true
if there is a FacesContext
, and it has a UIViewRoot
, and
isInitialized()
has returned true
.isActive
in interface javax.enterprise.context.spi.Context
public <T> T get(javax.enterprise.context.spi.Contextual<T> type)
get
in interface javax.enterprise.context.spi.Context
public <T> T get(javax.enterprise.context.spi.Contextual<T> type, javax.enterprise.context.spi.CreationalContext<T> context)
get
in interface javax.enterprise.context.spi.Context
Copyright © 2012–2014 OmniFaces. All rights reserved.