src/terralib/binding/v8/plugin/PluginEngineFactory.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file PluginEngineFactory.h
22 
23  \brief This is the concrete factory for JavaScript plugin engines.
24  */
25 
26 #ifndef __TERRALIB_BINDING_V8_PLUGIN_INTERNAL_PLUGINENGINEFACTORY_H
27 #define __TERRALIB_BINDING_V8_PLUGIN_INTERNAL_PLUGINENGINEFACTORY_H
28 
29 // TerraLib
30 #include "../../../plugin/PluginEngineFactory.h"
31 #include "Config.h"
32 
33 // STL
34 #include <memory>
35 
36 namespace te
37 {
38  namespace v8
39  {
40  namespace plugin
41  {
42  /*!
43  \class PluginEngineFactory
44 
45  \brief This is the concrete factory for JavaScript plugin engines.
46 
47  \sa te::plugin::PluginEngineFactory, te::plugin::PluginEngine, te::plugin::Plugin, te::v8::Plugin, te::v8::PluginEngine
48  */
50  {
51  protected:
52 
53  /*!
54  \brief It creates a new plugin engine for Java.
55 
56  \return It returns plugin engine for Java.
57  */
59 
60  /*! It register the factory in the abstract dictionary. */
62 
63  /*! \brief Destructor. */
65 
66  /*! \brief It initializes the factory: the singleton instance will be registered in the abstract factory PluginEngineFactory. */
67  static void initialize();
68 
69  /*! \brief It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory PluginEngineFactory. */
70  static void finalize();
71 
72  private:
73 
74  static PluginEngineFactory* sm_factory; //!< The plugin engine factory.
75 
76  friend class Module;
77  };
78 
79  } // end namespace plugin
80  } // end namespace v8
81 } // end namespace te
82 
83 
84 #endif // __TERRALIB_BINDING_V8_PLUGIN_INTERNAL_PLUGINENGINEFACTORY_H
85 
This is the concrete factory for JavaScript plugin engines.
URI C++ Library.
Definition: Attributes.h:37
#define TEV8PLUGINEXPORT
You can use this macro in order to export/import classes and functions from this module.
static PluginEngineFactory * sm_factory
The plugin engine factory.
An utility class to initialize and terminate TerraLib&#39;s Google JavaScript V8 engine module...
This is the abstract factory for plugin engines.