Package DataCollector :: Module Plugins :: Class PluginLoader
[hide private]
[frames] | no frames]

Class PluginLoader

source code

  twisted.spread.pb.Copyable --+
                               |
twisted.spread.pb.RemoteCopy --+
                               |
                              PluginLoader

Class to load plugins

Instance Methods [hide private]
 
__init__(self, package, modpath)
Initializer
source code
string
pluginName(self)
Return the name of the plugin
source code
 
create(self)
Load and compile the code contained in the given plugin
source code
Method Details [hide private]

__init__(self, package, modpath)
(Constructor)

source code 
Initializer
Parameters:
  • package (string) - package path where the plugins may be located
  • modpath (string) - plugin path inside of the package

pluginName(self)

source code 
Return the name of the plugin
Returns: string
name of the plugin