dmlite::PluginManager Class Reference
CatalogInterface can only be instantiated through this class.
More...
#include <dmlite.h>
List of all members.
Detailed Description
CatalogInterface can only be instantiated through this class.
Constructor & Destructor Documentation
PluginManager::PluginManager |
( |
|
) |
throw () |
PluginManager::~PluginManager |
( |
|
) |
|
dmlite::PluginManager::PluginManager |
( |
const PluginManager & |
|
) |
[private] |
Member Function Documentation
void PluginManager::configure |
( |
const std::string & |
key, |
|
|
const std::string & |
value | |
|
) |
| | throw (DmException) |
Set a configuration parameter. It will be passed to the loaded plugins.
- Parameters:
-
| key | The configuration parameter. |
| value | The value for the configuration parameter. |
Get the AuthnFactory implementation on top of the plugin stack.
Get the IOFactory implementation on top of the plugin stack.
Get the appropiate pool driver factory for the pool.
Get the PoolFactory implementation on top of the plugin stack.
void PluginManager::loadConfiguration |
( |
const std::string & |
file |
) |
throw (DmException) |
Load a configuration file, with plugins and parameters.
- Parameters:
-
| file | The configuration file. |
void PluginManager::loadPlugin |
( |
const std::string & |
lib, |
|
|
const std::string & |
id | |
|
) |
| | throw (DmException) |
Load a plugin. Previously instantiated interfaces won't be affected.
- Parameters:
-
| lib | The .so file. Usually, (path)/plugin_name.so. |
| id | The plugin ID. Usually, plugin_name. |
Register a Authn factory. To be used by concrete implementations
- Parameters:
-
| factory | The UserDbGroup concrete factory. |
- Note:
- The same object can be passed to other register functions. DMLite will take care of freeing it only once.
Register a catalog factory. To be used by concrete implementations (i.e. Plugins)
- Parameters:
-
| factory | The catalog concrete factory. |
- Note:
- The same object can be passed to other register functions. DMLite will take care of freeing it only once.
Register a INode factory. To be used by concrete implementations (i.e. Plugins)
- Parameters:
-
| factory | The INode concrete factory. |
- Note:
- The same object can be passed to other register functions. DMLite will take care of freeing it only once.
Register a IO factory.
- Parameters:
-
| factory | The IO concrete factory. |
- Note:
- The same object can be passed to other register functions. DMLite will take care of freeing it only once.
Register a PoolDriver factory.
- Parameters:
-
- Note:
- The same object can be passed to other register functions. DMLite will take care of freeing it only once.
Register a pool factory.
- Parameters:
-
| factory | The pool concrete factory. |
- Note:
- The same object can be passed to other register functions. DMLite will take care of freeing it only once.
Member Data Documentation
Internal list of loaded plug-ins.
Keep pointers returned by dlopen at hand to free on destruction.
The documentation for this class was generated from the following files: