The KettleEnvironment class contains settings and properties for all of Kettle. Initialization of the environment is
done by calling the init() method, which reads in properties file(s), registers plugins, etc. Initialization should
be performed once at application startup; for example, Spoon's main() method calls KettleEnvironment.init() in order
to prepare the environment for usage by Spoon.
public static void init(boolean simpleJndi)
Initializes the Kettle environment. This method performs the following operations:
- Creates a Kettle "home" directory if it does not already exist - Reads in the kettle.properties file -
Initializes the logging back-end - Sets the console log level to debug - If specified by parameter, configures
Simple JNDI - Registers the native types and the plugins for the various plugin types - Reads the list of variables
- Initializes the Lifecycle listeners
simpleJndi - true to configure Simple JNDI, false otherwise
org.pentaho.di.core.exception.KettleException - Any errors that occur during initialization will throw a KettleException.
public static boolean isInitialized()
Checks if the Kettle environment has been initialized.
true if initialized, false otherwise
public void loadPluginRegistry()
Loads the plugin registry.
org.pentaho.di.core.exception.KettlePluginException - if any errors are encountered while loading the plugin registry.