A class that handles JavaScript Plugins using Google's V8 engine. More...
#include <Plugin.h>
Public Member Functions | |
| const PluginInfo & | getInfo () const |
| It return the information associated to the plugin. More... | |
| bool | isStarted () const |
| It tells if the plugin was started or not. More... | |
| bool | operator< (const AbstractPlugin &rhs) const |
| This overloaded operator can be used to index the plugin in a set. More... | |
| Plugin (const te::plugin::PluginInfo &pInfo) | |
| It creates a new Java plugin. More... | |
| void | shutdown () throw (...) |
| Do nothing! Just set plugin as stopped. More... | |
| void | startup () throw (...) |
| Do nothing! Just set plugin as started. More... | |
| ~Plugin () | |
| Destructor. More... | |
Protected Attributes | |
| bool | m_initialized |
| A flag that indicates if the plugin was started or not. More... | |
| PluginInfo | m_pluginInfo |
| Information about the plugin. More... | |
Private Attributes | |
| te::v8::common::JsContext * | m_ctx |
| The context used to run this plugin. (note: the manager is the owner of this context!) More... | |
| ::v8::Persistent<::v8::Object > | m_jsplugin |
| A reference to an instance of the plugin. More... | |
| ::v8::Persistent<::v8::Function > | m_jspluginFtor |
| A reference to plugin's class constructor function. More... | |
| ::v8::Persistent<::v8::Function > | m_shutdown |
| A reference to plugin shutdown method. More... | |
| ::v8::Persistent<::v8::Function > | m_startup |
| A reference to plugin startup method. More... | |
Friends | |
| class | PluginEngine |
A class that handles JavaScript Plugins using Google's V8 engine.
Definition at line 52 of file src/terralib/binding/v8/plugin/Plugin.h.
| Plugin::Plugin | ( | const te::plugin::PluginInfo & | pInfo | ) |
It creates a new Java plugin.
| pInfo | Basic plugin information. |
Definition at line 31 of file src/terralib/binding/v8/plugin/Plugin.cpp.
|
virtual |
Destructor.
Reimplemented from te::plugin::Plugin.
Definition at line 37 of file src/terralib/binding/v8/plugin/Plugin.cpp.
References m_jsplugin, m_jspluginFtor, m_shutdown, and m_startup.
|
virtualinherited |
It return the information associated to the plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 29 of file attic/src/plugin/Plugin.cpp.
References te::plugin::Plugin::m_pluginInfo.
|
virtualinherited |
It tells if the plugin was started or not.
Implements te::plugin::AbstractPlugin.
Definition at line 34 of file attic/src/plugin/Plugin.cpp.
References te::plugin::Plugin::m_initialized.
|
inherited |
This overloaded operator can be used to index the plugin in a set.
| rhs | The right-hand-side plugin. |
Definition at line 38 of file AbstractPlugin.cpp.
References te::plugin::AbstractPlugin::getInfo().
|
virtual | |||||||||||||
Do nothing! Just set plugin as stopped.
Reimplemented from te::plugin::Plugin.
Definition at line 66 of file src/terralib/binding/v8/plugin/Plugin.cpp.
References m_ctx, te::plugin::Plugin::m_initialized, m_jsplugin, and m_shutdown.
|
virtual | |||||||||||||
Do nothing! Just set plugin as started.
Reimplemented from te::plugin::Plugin.
Definition at line 45 of file src/terralib/binding/v8/plugin/Plugin.cpp.
References m_ctx, te::plugin::Plugin::m_initialized, m_jsplugin, and m_startup.
|
friend |
Definition at line 78 of file src/terralib/binding/v8/plugin/Plugin.h.
|
private |
The context used to run this plugin. (note: the manager is the owner of this context!)
Definition at line 72 of file src/terralib/binding/v8/plugin/Plugin.h.
Referenced by shutdown(), and startup().
|
protectedinherited |
A flag that indicates if the plugin was started or not.
Definition at line 79 of file attic/src/plugin/Plugin.h.
Referenced by te::plugin::Plugin::isStarted(), Plugin::shutdown(), te::sqlite::Module::shutdown(), te::qt::plugins::geofile::Plugin::shutdown(), te::qt::plugins::mysql::Plugin::shutdown(), te::qt::plugins::sqlite::Plugin::shutdown(), te::plugin::Plugin::shutdown(), shutdown(), Plugin::startup(), te::sqlite::Module::startup(), te::qt::plugins::geofile::Plugin::startup(), te::qt::plugins::mysql::Plugin::startup(), te::qt::plugins::sqlite::Plugin::startup(), te::plugin::Plugin::startup(), and startup().
|
private |
A reference to an instance of the plugin.
Definition at line 74 of file src/terralib/binding/v8/plugin/Plugin.h.
Referenced by shutdown(), startup(), and ~Plugin().
|
private |
A reference to plugin's class constructor function.
Definition at line 73 of file src/terralib/binding/v8/plugin/Plugin.h.
Referenced by ~Plugin().
|
protectedinherited |
Information about the plugin.
Definition at line 78 of file attic/src/plugin/Plugin.h.
Referenced by te::plugin::Plugin::getInfo(), and te::sqlite::Module::startup().
|
private |
A reference to plugin shutdown method.
Definition at line 76 of file src/terralib/binding/v8/plugin/Plugin.h.
Referenced by shutdown(), and ~Plugin().
|
private |
A reference to plugin startup method.
Definition at line 75 of file src/terralib/binding/v8/plugin/Plugin.h.