|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.jsf2.impl.scope.view.ViewScopedContext
public class ViewScopedContext
This class provides the contexts lifecycle for the new JSF-2 @ViewScoped Context.
Constructor Summary | |
---|---|
ViewScopedContext()
|
Method Summary | ||
---|---|---|
|
get(javax.enterprise.context.spi.Contextual<T> component)
|
|
|
get(javax.enterprise.context.spi.Contextual<T> component,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
Class<? extends Annotation> |
getScope()
|
|
protected Map<String,Object> |
getViewMap()
|
|
protected javax.faces.component.UIViewRoot |
getViewRoot()
|
|
boolean |
isActive()
The view context is active if a valid ViewRoot could be detected. |
|
boolean |
isListenerForSource(Object source)
|
|
void |
processEvent(javax.faces.event.SystemEvent event)
We get PreDestroyViewMapEvent events from the JSF servlet and destroy our contextual instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewScopedContext()
Method Detail |
---|
public <T> T get(javax.enterprise.context.spi.Contextual<T> component)
get
in interface javax.enterprise.context.spi.Context
public <T> T get(javax.enterprise.context.spi.Contextual<T> component, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
get
in interface javax.enterprise.context.spi.Context
public Class<? extends Annotation> getScope()
getScope
in interface javax.enterprise.context.spi.Context
public boolean isActive()
isActive
in interface javax.enterprise.context.spi.Context
public boolean isListenerForSource(Object source)
isListenerForSource
in interface javax.faces.event.SystemEventListener
public void processEvent(javax.faces.event.SystemEvent event)
processEvent
in interface javax.faces.event.SystemEventListener
SystemEventListener.processEvent(javax.faces.event.SystemEvent)
protected javax.faces.component.UIViewRoot getViewRoot()
protected Map<String,Object> getViewMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |