27 #include "../../../common/Exception.h" 28 #include "../common/JsContext.h" 50 ::v8::HandleScope handleScope;
52 ::v8::TryCatch trycatch;
58 ::v8::Handle<::v8::Value> e = trycatch.Exception();
59 ::v8::String::AsciiValue estr(e);
71 ::v8::HandleScope handleScope;
73 ::v8::TryCatch trycatch;
79 ::v8::Handle<::v8::Value> e = trycatch.Exception();
80 ::v8::String::AsciiValue estr(e);
void shutdown()
Do nothing! Just set plugin as stopped.
bool m_initialized
A flag that indicates if the plugin was started or not.
::v8::Persistent<::v8::Function > m_jspluginFtor
A reference to plugin's class constructor function.
::v8::Persistent<::v8::Function > m_startup
A reference to plugin startup method.
void startup()
Do nothing! Just set plugin as started.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
::v8::Persistent<::v8::Function > m_shutdown
A reference to plugin shutdown method.
te::v8::common::JsContext * m_ctx
The context used to run this plugin. (note: the manager is the owner of this context!) ...
The basic information about a plugin.
Plugin(const te::plugin::PluginInfo &pInfo)
It creates a new Java plugin.
::v8::Persistent<::v8::Object > m_jsplugin
A reference to an instance of the plugin.
A class that handles JavaScript Plugins using Google's V8 engine.