Class PreClearFlashEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.SystemEvent
jakarta.faces.event.PreClearFlashEvent
- All Implemented Interfaces:
Serializable
This event must be published by a call to Application.publishEvent(FacesContext, Class, Object) before the flash
is cleared.
- Since:
- 2.2
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPreClearFlashEvent(FacesContext facesContext, Map<String, Object> source) Instantiate a newPreClearFlashEventthat indicates the argumentkeywas just put to the flash.PreClearFlashEvent(Map<String, Object> source) Instantiate a newPreClearFlashEventthat indicates the argumentkeywas just put to the flash. -
Method Summary
Methods inherited from class SystemEvent
getFacesContext, isAppropriateListener, processListenerModifier and TypeMethodDescriptionGet the Faces context.booleanisAppropriateListener(FacesListener listener) Returntrueif thisFacesListeneris an instance of a the appropriate listener class that this event supports.voidprocessListener(FacesListener listener) Broadcast this event instance to the specifiedFacesListener, by whatever mechanism is appropriate.Methods inherited from class EventObject
getSource, toString
-
Constructor Details
-
PreClearFlashEvent
Instantiate a new
PreClearFlashEventthat indicates the argumentkeywas just put to the flash.- Parameters:
source- Map containing the values about to be cleared This need not be the actualFlashinstance.- Throws:
IllegalArgumentException- if the argument isnull.
-
PreClearFlashEvent
Instantiate a new
PreClearFlashEventthat indicates the argumentkeywas just put to the flash.- Parameters:
facesContext- the Faces context.source- Map containing the values about to be cleared This need not be the actualFlashinstance.- Throws:
IllegalArgumentException- if the argument isnull.
-