Part of pida.core.plugins View In Hierarchy
Plugin
you can change this
by suplying one instance for an appropriate registry, or generating an
instance every time the method is called.
You can create a plugin's instance by issuing an instance
or a factory
function. The factory function receives an argument, the context registry
and returns the object this plugin holds. If you use the factory it is
called only once, to set the holded object, when the get_instance
method is called.
Line # | Kind | Name | Docs |
---|---|---|---|
251 | Method | __init__ | Undocumented |
260 | Method | get_instance | Returns the object associated with the Plugin . |
268 | Method | reset | When this plugin contains a factory makes it regen the instance. |
273 | Method | unplug | This method is called when the service is removed from the registry |