|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
|
inline |
Register a backend service capability.
| Interface | The service interface type being provided |
| factory | Factory function returning pointer to service implementation |
Thread-safe. Multiple registrations of the same interface type will overwrite previous registrations, enabling backend hot-swapping.
The factory is called each time get_service() is invoked, allowing backends to return context-specific implementations if needed.
Example: registry.register_service<IBufferService>([this]() -> void* { return static_cast<IBufferService*>(&m_buffer_service_impl); });
Definition at line 89 of file BackendRegistry.hpp.