[switchyard-issues] [JBoss JIRA] (SWITCHYARD-766) @Route definition should not be required in Java DSL route
Keith Babo (JIRA)
jira-events at lists.jboss.org
Wed May 9 12:08:17 EDT 2012
Keith Babo created SWITCHYARD-766:
-------------------------------------
Summary: @Route definition should not be required in Java DSL route
Key: SWITCHYARD-766
URL: https://issues.jboss.org/browse/SWITCHYARD-766
Project: SwitchYard
Issue Type: Bug
Components: component-camel
Affects Versions: 0.4
Reporter: Keith Babo
Fix For: 0.5
Deployment fails if the @Route definition is not present, but the deployer doesn't use the annotation for anything. It's use is limited to config generation, which the deployer shouldn't care about. Remove the following block from RouteFactory.java:
{code}
if (!routeClass.isAnnotationPresent(Route.class)) {
throw new SwitchYardException("@Route definition is missing on class "
+ routeClass.getName());
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the switchyard-issues
mailing list