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

Implementing missing ComponentContext methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-0.8.0
    • scr-1.0.0
    • None
    • org.apache.felix.scr project, Rev. 438041

    Description

      The scr project currently misses methods for the ComponentContext implementation, namely the getUsingBundle() and service location methods. I assume, these methods are fairly easy to implement:

      (1) getUsingBundle: set a private field of the ComponentContextImpl to the requiring bundle if created from a service factory. Otherwise this field remains null.

      (2) service location: find the DependencyManager whose metadata has the requested name and select a service.

      Attached is a patch, which implements this functionality.

      Attachments

        Activity

          People

            rickhall Richard S. Hall
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: