# getRunListener method

1. @override

ApplicationRunListener getRunListener(

1. JetApplication jetApplication

)

A hook interface for integrating with the lifecycle of a `Application`.

Implementations of this interface can register listeners that observe and react to application startup events such as context preparation, environment loading, and shutdown.

This is useful for frameworks or extensions that want to plug into the application bootstrap process without modifying the application code.

Example:

    class LoggingHook implements ApplicationHook {
      @override
      ApplicationRunListener getRunListener(Application app) {
        return LoggingRunListener(app);
      }
    }

Returns a `ApplicationRunListener` that will be attached to the lifecycle of the given `jetApplication`.

## Implementation

    @override
    ApplicationRunListener getRunListener(JetApplication jetApplication) {
      return ApplicationRunListeners(_listeners, _applicationStartup);
    }