apache / karaf-minho

Apache Karaf Minho
https://karaf.apache.org/
Apache License 2.0
6 stars 5 forks source link

Add filtering support on `ServiceRegistry` #3

Open jbonofre opened 1 year ago

jbonofre commented 1 year ago

It's possible to register several services with the same class in the ServiceRegistry. In that case, it would be great to extend the service registry with a service key/name, and be able to do serviceRegistry.get("key", MyInterface.class).

fpapon commented 1 year ago

Do we want to add properties associate to the key to be able to perform some fine search in the service registry? Like we can have with the SCR of OSGi.