Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.pentaho.di.core.lifecycle
Interface LifecycleListener

All Known Implementing Classes:
  LifecycleSupport

    public interface LifecycleListener

A callback interface that listens to specific lifecycle events triggered when Spoon starts and stops. Listeners are loaded dynamically by PDI. In order to register a listener with Spoon, a class that implements this interface must be placed in the "org.pentaho.di.core.listeners.pdi" package, and it will be loaded automatically when Spoon starts.

Author:
  Alex Silva

Method Summary
`void` | `onExit(LifeEventHandler handler)` Called when the application ends
`void` | `onStart(LifeEventHandler handler)` Called when the application starts.

Method Detail

### onStart

    void onStart(LifeEventHandler handler)
                 throws LifecycleException

  Called when the application starts.

  Throws:
    `LifecycleException` - Whenever this listener is unable to start succesfully.

### onExit

    void onExit(LifeEventHandler handler)
                throws LifecycleException

  Called when the application ends

  Throws:
    `LifecycleException` - If a problem prevents this listener from shutting down.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD