Closing as out of date, since we already solved this in multiple ways.
As of Search 5.10, you can already use dependency injection. In Search 6, you will also be able to use our internal service manager from the bridge, see HSEARCH-1306 Resolved .