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

Bind method of optional references can be called before bind methods of mandatory references

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • scr-1.6.0
    • None

    Description

      Hi,
      i got the following problem.
      I've some references to services, some of them are mandatory and some are optional. Well now osgi/scr waits to call the bind methods till all mandatory services are available.
      However when it starts to call the bind methods it seems that it doesn't care if those are mandatory or optional. This can result in a not expected behavior where optional dependencies are satisfied before the mandatory are.
      Consider you have a optional dynamic multiple service binding which you want to use with a mandatory service. There's as far as it looks to me no way to ensure that the mandatory binds are called before optional are allowed.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified