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

@Context(Context.Source.INSTANCE) does not inject bundle context

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: ipojo-runtime-1.12.0
    • Fix Version/s: ipojo-runtime-1.12.1
    • Component/s: iPOJO
    • Labels:
      None
    • Environment:
      JAVA 1.8

      Description

      I would like to use the bundle context for each instanciate of my bundle with this code :

      @Context(Context.Source.INSTANCE)
      private BundleContext _context;

      But the context return is null.

      If I use Context.Source.COMPONENT for the context definition, the context field is injected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clement.escoffier Clement Escoffier
                Reporter:
                Pierrick Tact Pierrick
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: