diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-21 12:16:50 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-21 12:16:50 -0230 |
commit | 2e6c83af2d788c518083caf4251a178d4098e4ea (patch) | |
tree | 76d1ea3fa46af91274e445959871e28fb3ba3446 /cpp/src/Ice/PluginManagerI.cpp | |
parent | Bug 2798 - add reason information to MemoryLimitException (diff) | |
download | ice-2e6c83af2d788c518083caf4251a178d4098e4ea.tar.bz2 ice-2e6c83af2d788c518083caf4251a178d4098e4ea.tar.xz ice-2e6c83af2d788c518083caf4251a178d4098e4ea.zip |
Bug 2504 - added getPlugins method to PluginManager
Diffstat (limited to 'cpp/src/Ice/PluginManagerI.cpp')
-rw-r--r-- | cpp/src/Ice/PluginManagerI.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/src/Ice/PluginManagerI.cpp b/cpp/src/Ice/PluginManagerI.cpp index 6e1e2f99449..75c9e70d4f6 100644 --- a/cpp/src/Ice/PluginManagerI.cpp +++ b/cpp/src/Ice/PluginManagerI.cpp @@ -68,6 +68,20 @@ Ice::PluginManagerI::initializePlugins() _initialized = true; } +StringSeq +Ice::PluginManagerI::getPlugins() +{ + IceUtil::Mutex::Lock sync(*this); + + StringSeq names; + map<string, PluginPtr>::iterator r; + for(r = _plugins.begin(); r != _plugins.end(); ++r) + { + names.push_back((*r).first); + } + return names; +} + PluginPtr Ice::PluginManagerI::getPlugin(const string& name) { |