You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/09/13 21:12:12 UTC

[jira] Updated: (CAMEL-1389) be able to render a single route definition or collection of routes in other languages (e.g. Java, Scala, Groovy, Ruby etc)

     [ https://issues.apache.org/activemq/browse/CAMEL-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-1389:
-------------------------------

    Fix Version/s:     (was: 2.2.0)
                   Future

> be able to render a single route definition or collection of routes in other languages (e.g. Java, Scala, Groovy, Ruby etc)
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1389
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1389
>             Project: Apache Camel
>          Issue Type: Improvement
>            Reporter: James Strachan
>             Fix For: Future
>
>
> We could do with an interface to be able to turn a RouteType or RoutesType into a textual representation.
> Maybe something like
> {code}
> public interface TextRenderer {
>   void renderRoute(Appendable buffer, RouteType route);
>   void renderRoutes(Appendable buffer, RoutesType route);
> }
> {code}
> The XML one is quite simple - we'd just use JAXB.
> For other languages (Java / Scala / Groovy / Ruby) we'd need some kind of visitor pattern for navigating the Routes/Route tree to turn each node into some neat language expression; so folks could extend some visitor thingy and include the specific Scala (say) code

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.