Hi all,

I have a bundle that can be configured through Configuration Admin. However when CA is *not* present it can still function using default behaviour.

Question 1: What would be the best way to let it check that the Configuration Admin service is not present, so that it can proceed with its default behaviour?

Question 2: I would really like it to have an *optional* dependency on org.osgi.service.cm. but still my code provides a class that implements org.osgi.service.cm.ManagedService I guess this should be possible, right? I was thinking of the following algorithm:

If Not Config Admin Present then
 default behaviour
else
register MyManagedService // only at this point the ManagedService class gets loaded
 ... handle configuration as soon as updated() gets called.

Is this a feasible approach?

Thanks,

David


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to