Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
org.apache.felix.dependencymanager-r8
-
None
Description
When dynamic instance bound dependencies are removed in the component destroy dm fails to call the remove callback.
I use an adapter service like
manager.add(createAdapterService(ApplicationService.class, null, "onAdd", "onChange", "onRemove") .setInterface(Servlet.class.getName(), null) .setImplementation(WinkServlet.class) .setCallbacks("dmInit", "dmStart", "dmStop", "dmDestroy") );
In the WinkServlet init callback an additional dependency is added and this is removed in the destroy callback. When the component is removed I get log messages like
ERROR org.amdatu.web.rest.wink - [main] "onRemove" callback not found on component instances []
http://www.mail-archive.com/users%40felix.apache.org/msg17300.html