Author: janstey
Date: Thu Apr 29 02:20:35 2010
New Revision: 939178
URL: http://svn.apache.org/viewvc?rev=939178&view=rev
Log:
fix errors in Scala archetype
Modified:
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
Modified:
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
URL:
http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala?rev=939178&r1=939177&r2=939178&view=diff
==============================================================================
---
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
(original)
+++
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
Thu Apr 29 02:20:35 2010
@@ -26,16 +26,15 @@ class MyRouteBuilder extends RouteBuilde
//an example for the simple DSL syntax...
"timer://foo?fixedRate=true&delay=0&period=10000" setbody("simple test") to
"log:simple"
+
+ // an example of a Processor method
+ val myProcessorMethod = (exchange: Exchange) => {
+ exchange.getIn.setBody("block test")
+ }
// ...and another one using Scala blocks
"timer://foo?fixedRate=true&delay=5000&period=10000" ==> {
process(myProcessorMethod)
to("log:block")
}
-
- // an example of a Processor method
- def myProcessorMethod(exchange: Exchange) = {
- exchange.getIn().setBody("block test")
- }
-
}