You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2009/11/03 15:27:54 UTC

[jira] Created: (CAMEL-2130) add a Visitor API to the org.apache.camel.model package so you can visit a RouteDefinition, a set of RouteDefinitions or a subset of a route to determine things like languages & endpoints used etc

add a Visitor API to the org.apache.camel.model package so you can visit a RouteDefinition, a set of RouteDefinitions or a subset of a route to determine things like languages & endpoints used etc
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-2130
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2130
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: James Strachan
             Fix For: 2.1.0


we should add a ModelVisitor interface to the model classes so that you can visit the model to see what endpoints, languages, dataformats are used - for example for reporting, OSGi dependency tracking or UI reasons.

{code}
definition = ...; // a route definition, a node in the route or a set or routes

SimpleVisitor visitor = new SimpleVisitor();
definition.visit(visitor);

System.out.println("The dataformats are: " + visitor.getDataFormats());
System.out.println("The endpoints are: " + visitor.getEndpoints());
System.out.println("The expressions are: " + visitor.getExpressions());
{code}

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


[jira] Updated: (CAMEL-2130) add a Visitor API to the org.apache.camel.model package so you can visit a RouteDefinition, a set of RouteDefinitions or a subset of a route to determine things like languages & endpoints used etc

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2130:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s:     (was: 2.3.0)
                   Future

> add a Visitor API to the org.apache.camel.model package so you can visit a RouteDefinition, a set of RouteDefinitions or a subset of a route to determine things like languages & endpoints used etc
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2130
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2130
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Priority: Minor
>             Fix For: Future
>
>
> we should add a ModelVisitor interface to the model classes so that you can visit the model to see what endpoints, languages, dataformats are used - for example for reporting, OSGi dependency tracking or UI reasons.
> {code}
> definition = ...; // a route definition, a node in the route or a set or routes
> SimpleVisitor visitor = new SimpleVisitor();
> definition.visit(visitor);
> System.out.println("The dataformats are: " + visitor.getDataFormats());
> System.out.println("The endpoints are: " + visitor.getEndpoints());
> System.out.println("The expressions are: " + visitor.getExpressions());
> {code}

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


[jira] Updated: (CAMEL-2130) add a Visitor API to the org.apache.camel.model package so you can visit a RouteDefinition, a set of RouteDefinitions or a subset of a route to determine things like languages & endpoints used etc

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2130:
-------------------------------

    Fix Version/s:     (was: 2.1.0)
                   2.2.0

> add a Visitor API to the org.apache.camel.model package so you can visit a RouteDefinition, a set of RouteDefinitions or a subset of a route to determine things like languages & endpoints used etc
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2130
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2130
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>             Fix For: 2.2.0
>
>
> we should add a ModelVisitor interface to the model classes so that you can visit the model to see what endpoints, languages, dataformats are used - for example for reporting, OSGi dependency tracking or UI reasons.
> {code}
> definition = ...; // a route definition, a node in the route or a set or routes
> SimpleVisitor visitor = new SimpleVisitor();
> definition.visit(visitor);
> System.out.println("The dataformats are: " + visitor.getDataFormats());
> System.out.println("The endpoints are: " + visitor.getEndpoints());
> System.out.println("The expressions are: " + visitor.getExpressions());
> {code}

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