def _loadProvides(self, prv): for ep in prv: epd = ExtensionPoint() epd._plugin = self.shadow epd._name = ep['point'] epd._interface = ep['interface'] epd._params = self._loadProvidesParams(ep.get('params', {})) self.shadow._extensionPoints.append(epd)
def _getKernelPlugin(self): kpl = PluginShadow() kpl._name = 'hk2' kpl._desc = 'pyhk2 kernel plugin' kpl._author = 'Sergii Mikhtoniuk ([email protected])' kpl._version = Version('1.0.0') stl = ExtensionPoint() stl._plugin = kpl stl._name = 'start_listeners' stl._interface = 'hk2.extensions.IStartListener' stl._params = { "priority" : ExtParamConstraint.Optional } kpl._extensionPoints.append(stl) return kpl