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

James Strachan updated CAMEL-1389:
----------------------------------

    Description: 
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

> 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: 2.1.0
>
>
> 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.

Reply via email to