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

DependencyManager.bind may bind to null and does not correctly check for success

    XMLWordPrintableJSON

Details

    Description

      In an active environment a service to be bound may disappear between the access to the service reference and the acquiry of the service itself. As a consequence the DependencyManager.bind(Object) method may call the component's bind method with a null instance, which is not expected.

      The DependencyManager.bind method should check whether the service still exists before calling the component's bind method.

      As a consequence the checks whether at least one service could be bound for mandatory references and that at most one service is bound for singular references have to be rethought: Currently binding fails if the first service reference cannot be bound for singular references. In such situations the binding also fails if calling the bind method fails.

      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: