Package javax.faces.event
Class PreDestroyApplicationEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.faces.event.SystemEvent
-
- javax.faces.event.PreDestroyApplicationEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class PreDestroyApplicationEvent extends SystemEvent
This event must be published by the runtime before the factories associated with this
Applicationare 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreDestroyApplicationEvent(Application application)Constructs a newPreDestroyApplicationEventfor this application.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationgetApplication()The sourceApplicationthat sent this event.-
Methods inherited from class javax.faces.event.SystemEvent
isAppropriateListener, processListener
-
-
-
-
Constructor Detail
-
PreDestroyApplicationEvent
public PreDestroyApplicationEvent(Application application)
Constructs a new
PreDestroyApplicationEventfor this application.- Parameters:
application- the application that has been configured- Since:
- 2.0
-
-
Method Detail
-
getApplication
public Application getApplication()
The source
Applicationthat sent this event.- Since:
- 2.0
-
-