Package org.pentaho.di.core.lifecycle
Interface LifecycleListener
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onExit(LifeEventHandler handler)
Called when the application endsvoid
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.
-
-