/// @file PluginManagerImpl.h
-/// @brief
+/// @brief PluginManagerImple provides abstraction of the plugin manager interface
#ifndef __PLUGINMANAGERIMPL_H__
#define __PLUGINMANAGERIMPL_H__
#include "Plugin.h"
#include "CpluffAdapter.h"
+
+#ifdef ANDROID
#include "FelixAdapter.h"
+#endif
namespace OIC
{
* During construction time, all plugins under the root plugin path will be loaded.
*
*/
- PluginManagerImpl();
+ PluginManagerImpl(void *args);
/**
* Virtual destructor
int registerPlugin(std::string path);
-
/**
* A function to register pluins in the path.
* This function will load plugins in plugin manager table.
*/
virtual std::vector<Plugin> &getAllPlugins(void);
- static PluginManagerImpl *Getinstance()
+ static PluginManagerImpl *Getinstance(void *args)
{
if (NULL == s_pinstance)
{
- s_pinstance = new PluginManagerImpl();
+ s_pinstance = new PluginManagerImpl(args);
}
return s_pinstance;
private:
CpluffAdapter *cppm;
+ void *m_args;
+#ifdef ANDROID
FelixAdapter *javappm;
+#endif
std::vector<Plugin> m_plugins;
static PluginManagerImpl *s_pinstance;