Class PreDestroyViewMapEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.SystemEvent
jakarta.faces.event.ComponentSystemEvent
jakarta.faces.event.PreDestroyViewMapEvent
- All Implemented Interfaces:
Serializable
This event must be published by a call to Application.publishEvent(FacesContext, Class, Object) when the
clear method is called on the map returned from UIViewRoot.getViewMap().
- Since:
- 2.0
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a newViewMapDestroydEventthat indicates the argumentrootjust had its associated view map destroyed.PreDestroyViewMapEvent(FacesContext facesContext, UIViewRoot root) Instantiate a newViewMapDestroydEventthat indicates the argumentrootjust had its associated view map destroyed. -
Method Summary
Methods inherited from class ComponentSystemEvent
getComponent, isAppropriateListener, processListenerModifier and TypeMethodDescriptionthe sourceUIComponentthat sent this event.booleanisAppropriateListener(FacesListener listener) Returntrueif the argumentFacesListeneris an instance of the appropriate listener class that this event supports.voidprocessListener(FacesListener listener) Broadcast this event instance to the specifiedFacesListenerby calling the superclass'sprocessListener()implementation.Methods inherited from class SystemEvent
getFacesContextMethods inherited from class EventObject
getSource, toString
-
Constructor Details
-
PreDestroyViewMapEvent
Instantiate a new
ViewMapDestroydEventthat indicates the argumentrootjust had its associated view map destroyed.- Parameters:
root- theUIViewRootfor which the view map has just been destroyed.- Throws:
IllegalArgumentException- if the argument isnull.
-
PreDestroyViewMapEvent
Instantiate a new
ViewMapDestroydEventthat indicates the argumentrootjust had its associated view map destroyed.- Parameters:
facesContext- the Faces context.root- theUIViewRootfor which the view map has just been destroyed.- Throws:
IllegalArgumentException- if the argument isnull.
-