org.apache.myfaces.trinidad.event

## Interface WindowLifecycleListener

- All Superinterfaces:
    EventListener

      public interface WindowLifecycleListener
      extends EventListener

  A listener called when the Lifecyle of a Window changes.

  Window listeners may be registered automatically by adding a file containing the names of the classes implementing the WindowLifecycleListener in a file named `org.apache.myfaces.trinidad.event.WindowLifecycleListener` inside of the `META_INF/services` directory or manually by calling `WindowManager.addWindowLifecycleListener`

  See Also:
    `WindowManager`

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `processWindowLifecylce(javax.faces.context.ExternalContext extContext, WindowLifecycleEvent event)` Called when the LifecycleState of a Window changes.

- - ### Method Detail

    - #### processWindowLifecylce

          void processWindowLifecylce(javax.faces.context.ExternalContext extContext,
                                    WindowLifecycleEvent event)

      Called when the LifecycleState of a Window changes.

      The current lifecycle state of a Window is the framework's best guess and may not be accurate. In particular, the last remaining open window may never move into the `CLOSED` state once it has moved into the `UNLOADED` state. In addition, no Window lifecycle events are delivered if the Session ceases to exist.

      The FacesContext may not be available at the time that this event is delivered.

      Parameters:
        `extContext` - ExternalContext available for this event
        `event` - WindowLifecycleEvent indicating the cause of the change to the Window's LifecycleState

Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.