Apama 10.3.1 | Apama Documentation | Developing Apama Applications | Developing EPL Plug-ins | Writing EPL Plug-ins in C++ | Creating a plug-in using C++ | Load-time or unload-time code
 
Load-time or unload-time code
If you need to execute code at the time the plug-in is loaded, then you should put it in the plug-in class constructor.
If you need to execute code at the time the plug-in is unloaded, then you should put it in the plug-in class destructor.
Typically, you will register any callbacks at load time in the constructor.
class MyPlugin: public EPLPlugin<MyPlugin>
{
MyPlugin(): base_plugin_t("MyPlugin") {
// load-time code here
}
~MyPlugin() {
// unload-time code here
}
};

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.