djblets.integrations.mixins¶
Mixins for classes working with integrations.
- class NeedsIntegrationManagerMixin¶
Bases:
object
Mixin for classes that require an integration manager to be defined.
Some classes require access to an integration manager, which must be provided by the consuming application. This mixin provides
get_integration_manager()
class method that, if not overridden, will raise aNotImplementedError
.- classmethod get_integration_manager() IntegrationManager ¶
Return the integration manager used for this class.
Subclasses must override this to return an
IntegrationManager
instance that will be used for any interaction management for this class.- Returns:
The integration manager for this class.
- Return type:
- Raises:
NotImplementedError – Raised if a subclass doesn’t override this method.