You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (Jira)" <ji...@apache.org> on 2020/09/21 11:51:00 UTC

[jira] [Created] (CAMEL-15560) generic route loader

Luca Burgazzoli created CAMEL-15560:
---------------------------------------

             Summary: generic route loader
                 Key: CAMEL-15560
                 URL: https://issues.apache.org/jira/browse/CAMEL-15560
             Project: Camel
          Issue Type: Improvement
          Components: camel-core-api, camel-core-engine
            Reporter: Luca Burgazzoli
            Assignee: Luca Burgazzoli
             Fix For: 3.6.0


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 compoennts & co to find the appropriate loader based on the file extension.

{code:java}
    /**
     * Sets a custom {@link XMLRoutesDefinitionLoader} to be used.
     */
    void setXMLRoutesDefinitionLoader(XMLRoutesDefinitionLoader xmlRoutesDefinitionLoader);

    /**
     * Gets the {@link XMLRoutesDefinitionLoader} to be used.
     */
    XMLRoutesDefinitionLoader getXMLRoutesDefinitionLoader();
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)