A plugin engine for plugins written in JavaScript using Google's V8 engine. More...
#include <PluginEngine.h>
Public Member Functions | |
| te::plugin::AbstractPlugin * | load (const te::plugin::PluginInfo &pInfo) throw (...) |
| It try to create and load the informed plugin. More... | |
| PluginEngine () | |
| void | unload (te::plugin::AbstractPlugin *plugin) throw (...) |
| It try to unload the informed plugin. More... | |
| ~PluginEngine () | |
| Virtual destructor. More... | |
A plugin engine for plugins written in JavaScript using Google's V8 engine.
Definition at line 46 of file PluginEngine.h.
|
inline |
Default construtor.
Definition at line 51 of file PluginEngine.h.
|
inline |
Virtual destructor.
Definition at line 54 of file PluginEngine.h.
|
virtual | ||||||||||||||
It try to create and load the informed plugin.
| pInfo | The information needed to create and load the plugin. |
| Exception | It throws an exception if the plugin can not be loaded. |
Implements te::plugin::AbstractPluginEngine.
Definition at line 49 of file PluginEngine.cpp.
References te::v8::common::Cache(), te::common::Singleton< JsContextManager >::getInstance(), te::v8::common::Print(), te::v8::common::ReadFile(), te::v8::jsi::RegisterModule(), and TR_V8PLUGIN.
|
virtual | ||||||||||||||
It try to unload the informed plugin.
On success the informed plugin will be also destroyed and its pointer will be invalidated.
| plugin | The plugin to be unloaded. |
| Exception | It throws an exception if the plugin can not be unloaded. |
Implements te::plugin::AbstractPluginEngine.
Definition at line 155 of file PluginEngine.cpp.
References TE_V8_PLUGIN_ENGINE_CODE.