|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omnifaces.application.ViewScopeEventListener
public class ViewScopeEventListener
Listener for JSF view scope destroy events so that view scope provider implementation can be notified.
ViewScopeProvider
Constructor Summary | |
---|---|
ViewScopeEventListener()
|
Method Summary | |
---|---|
boolean |
isListenerForSource(java.lang.Object source)
Returns true if given source is an instance of UIViewRoot . |
void |
processEvent(javax.faces.event.SystemEvent event)
If the event is an instance of PreDestroyViewMapEvent , which means that the JSF view scope is about to
be destroyed, then find the current instance of ViewScopeProvider and invoke its
ViewScopeProvider.preDestroyView() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewScopeEventListener()
Method Detail |
---|
public boolean isListenerForSource(java.lang.Object source)
true
if given source is an instance of UIViewRoot
.
isListenerForSource
in interface javax.faces.event.SystemEventListener
public void processEvent(javax.faces.event.SystemEvent event) throws javax.faces.event.AbortProcessingException
PreDestroyViewMapEvent
, which means that the JSF view scope is about to
be destroyed, then find the current instance of ViewScopeProvider
and invoke its
ViewScopeProvider.preDestroyView()
method.
processEvent
in interface javax.faces.event.SystemEventListener
javax.faces.event.AbortProcessingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |