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

Add getRegistry(T) - To get the registry as type T

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.13.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      So people can more easily get JndiRegistry / SimpleRegistry / SpringAppCtxRegistry and what else is there.

      Currently we wrap that in a property placeholder registry at runtime. So if people call getRegistry they get that back.

      So having

      JndiRegistry jndi = context.getRegistry(JndiRegistry.class);

      allows us to know what type they want, and return the actual registry.

      See nabble
      http://camel.465427.n5.nabble.com/update-JNDI-camel-registery-at-runtime-tp5748047.html

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: