com.espertech.esper.plugin
Interface PluginLoader


public interface PluginLoader

Interface for loaders of input/output adapters or any other adapter that may participate in an engine lifecycle.


Method Summary
 void destroy()
          Destroys adapter loader and adapters loaded.
 void init(PluginLoaderInitContext context)
          Initializes the adapter loader.
 void postInitialize()
          Called after an engine instances has fully initialized and is already registered with EPServiceProviderManager.
 

Method Detail

init

void init(PluginLoaderInitContext context)
Initializes the adapter loader.

Invoked before the engine instance is fully initialized. Thereby this is not the place to look up an engine instance from EPServiceProviderManager and use it. Use the postInitialize() method instead.

Parameters:
context - the plug in context

postInitialize

void postInitialize()
Called after an engine instances has fully initialized and is already registered with EPServiceProviderManager.

Since:
3.3.0

destroy

void destroy()
Destroys adapter loader and adapters loaded.

Invoked upon EPServiceProvider.destroy() before the engine instance is actually destroyed.

Implementations may block to ensure dependent threads are stopped or other resources released.


© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com