Package yapsy :: Module PluginManager :: Class PluginManagerSingleton
[hide private]

Class PluginManagerSingleton

source code

object --+
         |
        PluginManagerSingleton

Singleton version of the most basic plugin manager.

Being a singleton, this class should not be initialised explicitly and the get classmethod must be called instead.

To call one of this class's methods you have to use the get method in the following way: PluginManagerSingleton.get().themethodname(theargs)

To set up the various coonfigurables variables of the PluginManager's behaviour please call explicitly the following methods:



Instance Methods [hide private]
 
__init__(self)
Initialisation: this class should not be initialised explicitly and the get classmethod must be called instead.
source code

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

Class Methods [hide private]
 
setBehaviour(self, list_of_pmd)
Set the functionalities handled by the plugin manager by giving a list of PluginManager decorators.
source code
 
get(self)
Actually create an instance
source code
Class Variables [hide private]
  __instance = None
  __decoration_chain = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialisation: this class should not be initialised explicitly and the get classmethod must be called instead.

To set up the various configurables variables of the PluginManager's behaviour please call explicitly the following methods:

  • setCategoriesFilter for categories_filter
  • setPluginPlaces for directories_list
  • setPluginInfoExtension for plugin_info_ext
Overrides: object.__init__

setBehaviour(self, list_of_pmd)
Class Method

source code 

Set the functionalities handled by the plugin manager by giving a list of PluginManager decorators.

This function shouldn't be called several time in a same process, but if it is only the first call will have an effect.

It also has an effect only if called before the initialisation of the singleton.

In cases where the function is indeed going to change anything the True value is return, in all other cases, the False value is returned.