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

Components must correctly be disposed off

    XMLWordPrintableJSON

Details

    Description

      When a component is to be disposed off, the following tasks run:

      • unregister the service (if registered)
      • call deactivate method (if any)
      • unbind references

      In the current implementation the service unregistration throws an IllegalStateException if the service cannot be unregistered because the registration lock is being held by a nother thread. This exception is forwarded to the caller causing neither the deactivate method being called nor the reference being unbound.

      Rather we should continue with the controlled deactivation (and maybe even try to unregister again).

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: