Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5274

remove callback fails after manually removing dynamic dependencies

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            pderop Pierre De Rop
            brampouwelse Bram Pouwelse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: