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

Main is bound to DefaultCamelContext

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.9.2
    • 2.10.0
    • camel-core
    • None
    • any

    • Patch Available
    • Novice

    Description

      We are using our own CamelContext, which is extending the DefaultCamelContext. Using Main is impossible in this case, since the getCamelContextMap()-method creates statically a DefaultCamelContext. Overriding this method doesn't works either, since the field registery is final, and no other accessors are defined.

      The given path doesn't breaks existing code bases, and gives an easy possiblity to override the context-creation, as well as access to the registry.

      Attachments

        1. Main.java.patch
          1 kB
          Daniel Galán y Martins

        Activity

          People

            davsclaus Claus Ibsen
            danielgalan Daniel Galán y Martins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: