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

generic route loader

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.8.0
    • came-core, camel-core-api
    • None
    • Unknown

    Description

      In camel-k we have a mechanism to load routes written in different languages, in camel instead we only support XML.

      We should move the generic loader to Camel from Camel K and leave the implementations where they fit better.

      I'm proposing to remove the following methods from the ExtendedCamelContext and replace them with a generic discovery mechanism similar to the one used for components & co to find the appropriate loader based on the file extension.

          /**
           * Sets a custom {@link XMLRoutesDefinitionLoader} to be used.
           */
          void setXMLRoutesDefinitionLoader(XMLRoutesDefinitionLoader xmlRoutesDefinitionLoader);
      
          /**
           * Gets the {@link XMLRoutesDefinitionLoader} to be used.
           */
          XMLRoutesDefinitionLoader getXMLRoutesDefinitionLoader();
      

      Attachments

        Issue Links

          Activity

            People

              lb Luca Burgazzoli
              lb Luca Burgazzoli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: