[
https://issues.apache.org/jira/browse/CAMEL-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064066#comment-13064066
]
Claus Ibsen commented on CAMEL-4217:
------------------------------------
If you add it as fluent builder in the Java DSL then I suggest to not name it
setXXX as it indicate a java bean setter, which must be void type.
So I suggest to do
{code}
public RouteDefinition autoStartup(String autoStartup) {
..
return this;
}
{code}
> support route setAutoStartup(String) in Java DSL
> ------------------------------------------------
>
> Key: CAMEL-4217
> URL: https://issues.apache.org/jira/browse/CAMEL-4217
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Ben O'Day
> Priority: Trivial
> Fix For: 2.9.0
>
>
> should be able call setAutoStartup(String) on a route in the Java DSL (works
> fine in Spring)...would allow for conditional startup based on properties,
> etc...
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira