class documentation
Context for managing stateful filter resources.
This class manages the runtime state for filters, including: - Cached filter driver instances that maintain long-running state - Resource lifecycle management
It works in conjunction with FilterRegistry to provide complete filter functionality while maintaining proper separation of concerns.
| Method | __del__ |
Clean up on destruction. |
| Method | __init__ |
Initialize FilterContext. |
| Method | close |
Close all active filter resources. |
| Method | get |
Get a filter driver by name, managing stateful instances. |
| Method | refresh |
Refresh the configuration used by the filter registry. |
| Instance Variable | filter |
Undocumented |
| Instance Variable | _active |
Undocumented |
Initialize FilterContext.
| Parameters | |
filterFilterRegistry | The filter registry to use for driver lookups |
Get a filter driver by name, managing stateful instances.
This method handles driver instantiation and caching. Only drivers that should be reused are cached.
| Parameters | |
name:str | The filter name |
| Returns | |
FilterDriver | None | FilterDriver instance or None |
Refresh the configuration used by the filter registry.
This should be called when the configuration has changed to ensure filters use the latest settings.
| Parameters | |
config:StackedConfig | The new configuration stack |