camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Norris (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-2787) camel:packageScan convenience for RouteBuilders defined with Spring @Components
Date Thu, 03 Jun 2010 16:50:52 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59932#action_59932
] 

Jeremy Norris commented on CAMEL-2787:
--------------------------------------

Hi Clause, Wow, that was quick.  Nice work!

One quick observation:  Finding @Component RouteBuilder's could likely be a bit more general.
 Essentially we want to check if the component is already defined and managed by Spring (eg:
it could be @Component, some other stereotype, defined in XML, etc.).  Instead of saying isRouteBuilderAlreadyRegisteredByComponentAnnotation(Class
type), is there a way to ask the Spring context if it knows about any beans defined with that
type?  This would provide a more complete and consistent integration with Spring.  Thoughts?

Thanks.

> camel:packageScan convenience for RouteBuilders defined with Spring @Components
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-2787
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2787
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-spring
>    Affects Versions: 2.3.0
>         Environment: MacOSX 10.6.3, Java 1.6.0_20
>            Reporter: Jeremy Norris
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.4.0
>
>         Attachments: spring-integration-testcase.tar.gz
>
>
> When a route builder is defined using @Component, I have to reference is as follows:
>   <camelContext xmlns="http://camel.apache.org/schema/spring">
>     <routeBuilder ref="routeBuilderFoo"/>
>   </camelContext>
> Should I not be able to use the following instead?
>   <packageScan>
>     <package>org.jnorris.camel</package>
>   </packageScan>

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


Mime
View raw message