Bases: stevedore.named.NamedExtensionManager
Load a single plugin with a given name from the namespace.
Parameters: |
|
---|
Invokes func() for the single loaded extension.
The signature for func() should be:
def func(ext, *args, **kwds):
pass
The first argument to func(), ‘ext’, is the Extension instance.
Exceptions raised from within func() are logged and ignored.
Parameters: |
|
---|---|
Returns: | List of values returned from func() |
Returns the driver being used by this manager.
Bases: stevedore.named.NamedExtensionManager
Coordinate execution of multiple extensions using a common name.
Parameters: |
|
---|
Return the named extensions.
Accessing a HookManager as a dictionary (em['name']) produces a list of the Extension instance(s) with the specified name, in the order they would be invoked by map().
Bases: stevedore.extension.ExtensionManager
Loads only the named extensions.
This is useful for explicitly enabling extensions in a configuration file, for example.
Parameters: |
|
---|
Bases: stevedore.extension.ExtensionManager
Loads only plugins that pass a check function.
The check_func argument should return a boolean, with True indicating that the extension should be loaded and made available and False indicating that the extension should be ignored.
Parameters: |
|
---|
Bases: stevedore.enabled.EnabledExtensionManager
Loads all plugins and filters on execution.
This is useful for long-running processes that need to pass different inputs to different extensions.
Parameters: |
|
---|
Iterate over the extensions invoking func() for any where filter_func() returns True.
The signature of filter_func() should be:
def filter_func(ext, *args, **kwds):
pass
The first argument to filter_func(), ‘ext’, is the Extension instance. filter_func() should return True if the extension should be invoked for the input arguments.
The signature for func() should be:
def func(ext, *args, **kwds):
pass
The first argument to func(), ‘ext’, is the Extension instance.
Exceptions raised from within func() are propagated up and processing stopped if self.propagate_map_exceptions is True, otherwise they are logged and ignored.
Parameters: |
|
---|---|
Returns: | List of values returned from func() |
Bases: stevedore.dispatch.DispatchExtensionManager
Loads all plugins and filters on execution.
This is useful for long-running processes that need to pass different inputs to different extensions and can predict the name of the extensions before calling them.
The check_func argument should return a boolean, with True indicating that the extension should be loaded and made available and False indicating that the extension should be ignored.
Parameters: |
|
---|
Iterate over the extensions invoking func() for any where the name is in the given list of names.
The signature for func() should be:
def func(ext, *args, **kwds):
pass
The first argument to func(), ‘ext’, is the Extension instance.
Exceptions raised from within func() are propagated up and processing stopped if self.propagate_map_exceptions is True, otherwise they are logged and ignored.
Parameters: |
|
---|---|
Returns: | List of values returned from func() |
Bases: object
Base class for all of the other managers.
Parameters: |
|
---|
Return the named extension.
Accessing an ExtensionManager as a dictionary (em['name']) produces the Extension instance with the specified name.
Produce iterator for the manager.
Iterating over an ExtensionManager produces the Extension instances in the order they would be invoked.
list of weak references to the object (if defined)
Iterate over the extensions invoking func() for each.
The signature for func() should be:
def func(ext, *args, **kwds):
pass
The first argument to func(), ‘ext’, is the Extension instance.
Exceptions raised from within func() are propagated up and processing stopped if self.propagate_map_exceptions is True, otherwise they are logged and ignored.
Parameters: |
|
---|---|
Returns: | List of values returned from func() |
Returns the names of the discovered extensions
Bases: object
Book-keeping object for tracking extensions.
The arguments passed to the constructor are saved as attributes of the instance using the same names, and can be accessed by the callables passed to map() or when iterating over an ExtensionManager directly.
Parameters: |
|
---|
Bases: stevedore.extension.ExtensionManager
ExtensionManager that is explicitly initialized for tests.
Parameters: |
|
---|