You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by he...@apache.org on 2014/02/05 22:56:37 UTC

git commit: [Scala DSL] Added Scaladoc.

Updated Branches:
  refs/heads/master 66e6b1f45 -> 2bd8b0374


[Scala DSL] Added Scaladoc.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2bd8b037
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2bd8b037
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2bd8b037

Branch: refs/heads/master
Commit: 2bd8b03742d3f268b2e81d0d1f87e99c2b46533c
Parents: 66e6b1f
Author: Henryk Konsek <he...@gmail.com>
Authored: Wed Feb 5 22:56:18 2014 +0100
Committer: Henryk Konsek <he...@gmail.com>
Committed: Wed Feb 5 22:56:18 2014 +0100

----------------------------------------------------------------------
 .../main/scala/org/apache/camel/scala/Preamble.scala  | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2bd8b037/components/camel-scala/src/main/scala/org/apache/camel/scala/Preamble.scala
----------------------------------------------------------------------
diff --git a/components/camel-scala/src/main/scala/org/apache/camel/scala/Preamble.scala b/components/camel-scala/src/main/scala/org/apache/camel/scala/Preamble.scala
index c7f6558..a28beeb 100644
--- a/components/camel-scala/src/main/scala/org/apache/camel/scala/Preamble.scala
+++ b/components/camel-scala/src/main/scala/org/apache/camel/scala/Preamble.scala
@@ -21,9 +21,8 @@ import processor.aggregate.AggregationStrategy
 import org.apache.camel.builder.ExchangeBuilder.anExchange
 import org.apache.camel.scala.Preamble.FnAggregationStrategy.exchangeWrappingAggregator
 
-object Preamble extends Preamble
 /**
- * Trait containing common implicit conversion definitions
+ * Trait containing common implicit conversion definitions.
  */
 trait Preamble {
 
@@ -140,4 +139,13 @@ trait Preamble {
 
   }
 
-}
\ No newline at end of file
+}
+
+/**
+ * Object globally exposing [[org.apache.camel.scala.Preamble]] trait. Useful to import explicit conversions
+ * without extending trait. For example:
+ *
+ * `import org.apache.camel.scala.Preamble._`
+ *
+ */
+object Preamble extends Preamble
\ No newline at end of file