Top Description Constructors Methods
com.sun.faces.application.view

public Class ViewScopeEventListener

extends Object
implements ViewMapListener
Class Inheritance
All Implemented Interfaces
jakarta.faces.event.ViewMapListener, jakarta.faces.event.SystemEventListener, jakarta.faces.event.FacesListener, java.util.EventListener
Imports
jakarta.faces.component.UIViewRoot, jakarta.faces.context.FacesContext, jakarta.faces.event.AbortProcessingException, .SystemEvent, .ViewMapListener

The ViewScope event listener.

To make it so the UIViewRoot.getViewMap is as independent as possible from implementation specific code we need to get notified when a view map is created or destroyed. This ViewMapListener is registered so we get notified of these events.

See MojarraRuntimePopulator for the actual registration of this listener.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if UIViewRoot, false otherwise.
isListenerForSource
(Object
the source.
source
)

Implements jakarta.faces.event.SystemEventListener.isListenerForSource.

Is listener for.

public void
processEvent(SystemEvent
the system event.
se
)

Implements jakarta.faces.event.SystemEventListener.processEvent.

Handle the system event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ViewScopeEventListenerback to summary
public ViewScopeEventListener()

Method Detail

isListenerForSourceback to summary
public boolean isListenerForSource(Object source)

Implements jakarta.faces.event.SystemEventListener.isListenerForSource.

Is listener for.

Parameters
source:Object

the source.

Returns:boolean

true if UIViewRoot, false otherwise.

Annotations
@Override
processEventback to summary
public void processEvent(SystemEvent se) throws AbortProcessingException

Implements jakarta.faces.event.SystemEventListener.processEvent.

Handle the system event.

Parameters
se:SystemEvent

the system event.

Annotations
@Override
Exceptions
AbortProcessingException:
when processing needs to be aborted.