public class PreDestroyApplicationEvent extends SystemEvent
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.
source| Constructor and Description | 
|---|
PreDestroyApplicationEvent(Application application)
Constructs a new
   | 
PreDestroyApplicationEvent(FacesContext facesContext,
                          Application application)
Constructs a new
   | 
| Modifier and Type | Method and Description | 
|---|---|
Application | 
getApplication()
The source   | 
getFacesContext, isAppropriateListener, processListenergetSource, toStringpublic PreDestroyApplicationEvent(Application application)
Constructs a new
 PreDestroyApplicationEvent for this application.
application - the application that has been configuredpublic PreDestroyApplicationEvent(FacesContext facesContext, Application application)
Constructs a new
 PreDestroyApplicationEvent for this application.
facesContext - the Faces context.application - the application that has been configuredpublic Application getApplication()
The source Application that sent this event.
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.