Ice 3.7 C++11 API Reference
|
Each communicator has a plug-in manager to administer the set of plug-ins. More...
#include <Ice/Ice.h>
Public Member Functions | |
virtual void | addPlugin (const ::std::string &name, const ::std::shared_ptr< Plugin > &pi)=0 |
Install a new plug-in. More... | |
virtual void | destroy () noexcept=0 |
Called when the communicator is being destroyed. More... | |
virtual ::std::shared_ptr<::Ice::Plugin > | getPlugin (const ::std::string &name)=0 |
Obtain a plug-in by name. More... | |
virtual ::Ice::StringSeq | getPlugins () noexcept=0 |
Get a list of plugins installed. More... | |
virtual void | initializePlugins ()=0 |
Initialize the configured plug-ins. More... | |
virtual | ~PluginManager () |
Each communicator has a plug-in manager to administer the set of plug-ins.
|
virtual |
|
pure virtual |
Install a new plug-in.
name | The plug-in's name. |
pi | The plug-in. |
AlreadyRegisteredException | Raised if a plug-in already exists with the given name. |
|
pure virtualnoexcept |
Called when the communicator is being destroyed.
|
pure virtual |
Obtain a plug-in by name.
name | The plug-in's name. |
NotRegisteredException | Raised if no plug-in is found with the given name. |
|
pure virtualnoexcept |
|
pure virtual |
Initialize the configured plug-ins.
The communicator automatically initializes the plug-ins by default, but an application may need to interact directly with a plug-in prior to initialization. In this case, the application must set Ice.InitPlugins=0
and then invoke initializePlugins manually. The plug-ins are initialized in the order in which they are loaded. If a plug-in raises an exception during initialization, the communicator invokes destroy on the plug-ins that have already been initialized.
InitializationException | Raised if the plug-ins have already been initialized. |