I was wrong, this is not a bug: sorry. It is designed to be used slightly differently than with managed Services: the service must be registered directly.
Slight weirdness though: you still need a ServiceProvider<S>.class as a key for the instance, even if you never use the custom ServiceProvider<S>.
I was wrong, this is not a bug: sorry. It is designed to be used slightly differently than with managed Services: the service must be registered directly.
Slight weirdness though: you still need a ServiceProvider<S>.class as a key for the instance, even if you never use the custom ServiceProvider<S>.