Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6130

EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.9.5, 2.10.4
    • 2.10.5, 2.11.0
    • osgi
    • None
    • Patch Available
    • Unknown

    Description

      EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry

      setReferenceProperties() is hard-coded to lookup services of type Object.class.

      It should use reflection to determine the type that the setter method accepts and then use that type to lookup the reference in the service registry.

      At the moment this issue is stopping #bean references in Endpoints from being resolved when using an OSGiServiceRegistry, in OSGi you need to know the class of the service you want before hand.

      Attachments

        1. CAMEL-6130.patch
          4 kB
          Aaron Whiteside
        2. CAMEL-6130-2.patch
          7 kB
          Aaron Whiteside
        3. CAMEL-6130-3.patch
          7 kB
          Aaron Whiteside
        4. CAMEL-6130-4_.patch
          15 kB
          Aaron Whiteside
        5. CAMEL-6130-5.patch
          13 kB
          Aaron Whiteside

        Activity

          People

            davsclaus Claus Ibsen
            aaronjwhiteside Aaron Whiteside
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: