|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omnifaces.cdi.viewscope.ViewScopeContext
public class ViewScopeContext
Provide a context for the ViewScoped
annotation wherein beans are managed by ViewScopeManager
.
ViewScoped
,
ViewScopeManager
Constructor Summary | |
---|---|
ViewScopeContext(javax.enterprise.inject.spi.BeanManager manager,
javax.enterprise.inject.spi.Bean<ViewScopeManager> bean)
Construct a new view scope context. |
Method Summary | ||
---|---|---|
|
get(javax.enterprise.context.spi.Contextual<T> type)
|
|
|
get(javax.enterprise.context.spi.Contextual<T> type,
javax.enterprise.context.spi.CreationalContext<T> context)
|
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns ViewScoped class. |
|
boolean |
isActive()
Returns true if there is a FacesContext , and it has a UIViewRoot , and
isInitialized() has returned true . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public java.lang.Class<? extends java.lang.annotation.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |