Class PreDestroyApplicationEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.SystemEvent
jakarta.faces.event.PreDestroyApplicationEvent
- All Implemented Interfaces:
Serializable
This event must be published by the runtime before the factories associated with this Application
are released.
This event is useful for listeners that need to perform custom shutdown processing without having to rely on
ServletContextListeners which will be invoked after all of the application artifacts have been removed.
- Since:
- 2.0
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPreDestroyApplicationEvent(Application application) Constructs a newPreDestroyApplicationEventfor this application.PreDestroyApplicationEvent(FacesContext facesContext, Application application) Constructs a newPreDestroyApplicationEventfor this application. -
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
-
PreDestroyApplicationEvent
Constructs a new
PreDestroyApplicationEventfor this application.- Parameters:
application- the application that has been configured- Since:
- 2.0
-
PreDestroyApplicationEvent
Constructs a new
PreDestroyApplicationEventfor this application.- Parameters:
facesContext- the Faces context.application- the application that has been configured- Since:
- 2.0
-
-
Method Details
-
getApplication
The source
Applicationthat sent this event.- Returns:
- the application.
- Since:
- 2.0
-