[
https://issues.apache.org/jira/browse/CAMEL-7961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henryk Konsek reopened CAMEL-7961:
----------------------------------
>From the mailing list:
==== Claus: ====
-1
This is not as correct as autoStartup is already defined in the Java
DSL at route definition. We should not add it to processor defintion
as then its too verbose in the DSL, as it becomes visible where it
makes no sense, eg from X to Y to Z ... autoStartup...
So remove it from processor definition and find another way to add it
to the Scala DSL.
And btw this is also wrong
public Type autoStartup(String autoStartup) {
+ return autoStartup(Boolean.valueOf(autoStartup));
+ }
That should use Camels property placeholder as the string is intended
as a placeholder key etc.
> camel-scala - Auto startup not available in Scala DSL
> -----------------------------------------------------
>
> Key: CAMEL-7961
> URL: https://issues.apache.org/jira/browse/CAMEL-7961
> Project: Camel
> Issue Type: Improvement
> Components: camel-scala
> Affects Versions: 2.14.0
> Reporter: Edin Hodzic
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.15.0
>
> Attachments:
> CAMEL-7961_added_autoStartup_and_noAutoStartup_to_Scala_DSL.patch
>
>
> The
> [{{autoStartup}}|http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html]
> method is missing from the Scala DSL.
> {code:title=MyRoute.scala}
> import org.apache.camel.scala.dsl.builder.RouteBuilder
> class MyRoute extends RouteBuilder {
> "direct:start" ==> {
> autoStartup(false) // this is not available
> autoStartup("{{some.route.auto.startup}}") // this is not available
> noAutoStartup() // this is not available
> to("mock:end")
> }
> }
> {code}
> This should be added to the Scala DSL.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)