The Plugin
What is a Plugin?
Attaching Plugins to Handlers
from gl_plugin.plugin.plugin import Plugin
@Plugin.for_handler(CalculatorHandler)
class MathPlugin(Plugin):
name = "MathPlugin"
version = "1.0.0"
description = "A math plugin"Plugin Metadata
Attribute
Purpose
Abstract vs Concrete Plugins
Abstract Base Plugin
Concrete Implementations
Benefits of This Pattern
Overriding Injected Services
Understanding the Lifecycle

Basic Override
Override Order Matters
When to Override Services
Testing with Mocks
Special Cases Requiring Custom Instances
Concrete Implementations Needing Different Behavior
Summary
Concept
Description
Last updated
Was this helpful?