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

DefaultInjector created instead of SpringInjector when using custom ModelReifierFactory in Spring Boot app

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.6.0
    • 4.8.0
    • None
    • Spring Boot

    • Unknown

    Description

      I'm referencing a custom model reifier factory in META-INF/services/org/apache/camel/model-reifier-factory which is causing DefaultInjector to be used instead of the expected SpringInjector.

      SpringCamelContext creates the injector when loading a custom ModelReifierFactory. SpringInjector requires the application context, but since the application context hasn't yet been set on SpringCamelContext, the SpringInjector cannot be created so SpringCamelContext falls back to DefaultInjector. I've attached the call stack of this behaviour.

      Attachments

        1. call-stack.txt
          6 kB
          Claude Mamo

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              claude.mamo Claude Mamo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: