Skip to content

Commit 470dffc

Browse files
committed
docs: update README to include plugin lifecycle hooks and async lifecycle details
1 parent fab2139 commit 470dffc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ See `docs/async_plugins.md` for full documentation on automatic vs manual async
183183
- `register_plugin(PluginType, v=None, init=False)`
184184
- `get_extension(ext_name_or_type, v=None)` for single extension
185185
- `get_extensions(ext_name_or_type, v=None)` for multi-extension
186+
- Plugin lifecycle hooks:
187+
- `on_registration(v)` – called once when plugin is first registered (before initialization)
188+
- `initialize(v, logger)` – main initialization, returns extension point value
189+
- `shutdown(v, logger, value)` – cleanup on shutdown
186190
- Async lifecycle (for asyncio apps):
187191
- `async_plugins_ready(v)` – call `async_ready()` on all plugins
188192
- `async_plugins_stopping(v)` – call `async_stopping()` on all plugins

0 commit comments

Comments
 (0)