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

OsgiDefaultCamelContext should call parent constructor with registry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.17.1
    • 2.18.0
    • camel-osgi
    • None
    • Unknown

    Description

      OsgiDefaultCamelContext constructor doesn't call super to pass registry so inconsistent registries are set in DefaultCamelContext and DefaultCamelContext instances.

      If a client create OsgiDefaultCamelContext with custom registry then (private) variable in DefaultCamelContext is not initialized and a different new instance will be created by getRegistry method.

      Either scope of registry in DefaultCamelContext should be changed to protected or OsgiDefaultCamelContext should pass the reference.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              borcsokj Börcsök József
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: