Hello All

Using Dependency Manager, I declare adapters like this:
mgr.add(createAdapterService(Device.class,null)
.setImplementation(DeviceAdapter.class)
  .setCallbacks(deviceManager, "init", "start", "stop", "destroy"));

So deviceManager gets notified when the adapters appear. Now I also want deviceManager to be notified when the properties of any of the adaptees (Device.class) change (need to update the UI).

For normal ServiceDependency I can specify callbacks to be called on a third party object with ServiceDependency.setCallbacks(Object instance, String added, String changed, String removed);

For adapters and I can specify the callbacks, but only calling the adapter itself:
  createAdapterService(Device.class.name, null, "add", "change", "remove")

How can I tell the adapter to use callbacks on a third party object (deviceManager) when the adaptee's properties change?

Thanks & regards
  Philipp


Reply via email to