![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The MPlugin class allows applications to add extra functionality to an adapter at runtime without recompiling the adapter. Possible uses of the MPlugin class are:
• loading new MApp componentsTo define a plug-in, you need to create a subclass of MPlugin and implement one C function and four C++ methods.
Table 34 Function and Method for a Plug-in CreateNewPlugin() C function MPlugin::MPlugin() method MPlugin::~MPlugin() method MPlugin::onInitialization() method MPlugin::onTermination() method You can configure a plug-in by using the TIBCO Designer to add a custom plug-in object to the adapter instance description stored in the project repository.For example, to configure a Java plug-in MyPlugin.java:
1. Click the Edit Adapter XML button in the Configuration tab of Generic Adapter Configuration resource.
3. Click OK to close the XML file.
4. Click Apply.To load a plug-in into the adapter, specify the system:plugin command-line argument as follows:"-system:plugin your_plugin_shared_library"
Before using this feature, be sure to call MAppProperties::setCommandLine().
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |