Package brisa :: Package core :: Module plugin_manager :: Class PluginManager
[hide private]
[frames] | no frames]

Class PluginManager

source code

         object --+    
                  |    
singleton.Singleton --+
                      |
                     PluginManager

Manages plugins.'

Nested Classes [hide private]

Inherited from singleton.Singleton: __metaclass__

Instance Methods [hide private]
 
__init__(self, plugins_folder, plugins_modules_path)
Instantiates the plugin manager and recognizes the plugins.
source code
 
_find_and_import_plugins(self, plugins_folder, plugins_modules_path) source code
 
publish_plugins(self, webserver) source code
 
load_plugins(self)
Instantiates plugins and loads them using PluginLoader.
source code
 
unload_plugins(self)
Unload all plugins.
source code
 
_recognize_plugins(self)
Recognizes plugins classes.
source code
 
_instantiate_plugins(self)
Instantiates all plugin classes into the plugin manager.
source code
 
_load_plugin(self, plugin)
Loads a plugin using PluginLoader.
source code
 
_load_plugins(self)
Loads all plugins selected using _load_plugin() method.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  plugins_instances = {}
  plugins_classes = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, plugins_folder, plugins_modules_path)
(Constructor)

source code 

Instantiates the plugin manager and recognizes the plugins.

Parameters:
  • plugins_folder (string) - the name of the plugin folder
  • plugins_modules_path (string) - the path to the plugin folder
Overrides: object.__init__

_load_plugin(self, plugin)

source code 

Loads a plugin using PluginLoader.

Parameters:
  • plugin (Plugin) - plugin instance to be loaded