camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-8316: Rename property language to exchangeProperty to avoid ambiguity, confusion and clash with properties as a general term.
Date Fri, 06 Feb 2015 06:50:43 GMT
Repository: camel
Updated Branches:
  refs/heads/master 9ad074f4f -> 5e67f4769


CAMEL-8316: Rename property language to exchangeProperty to avoid ambiguity, confusion and
clash with properties as a general term.


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

Branch: refs/heads/master
Commit: 5e67f4769dddc62ba19cbadd8ec947a24d7aa0aa
Parents: 9ad074f
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Feb 6 07:50:48 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Feb 6 07:50:56 2015 +0100

----------------------------------------------------------------------
 .../scala/org/apache/camel/scala/dsl/languages/Languages.scala | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5e67f476/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
----------------------------------------------------------------------
diff --git a/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
b/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
index 3e4f905..f2a2a46 100644
--- a/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
+++ b/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/languages/Languages.scala
@@ -30,6 +30,7 @@ trait Languages {
   implicit def addLanguageMethodsToExchange(exchange: Exchange) = new {
     def constant(expression: String) =   Languages.this.constant(expression)(exchange)
     def el(expression: String) =         Languages.this.el(expression)(exchange)
+    def exchangeProperty(propertyName: String) = Languages.this.exchangeProperty(propertyName)(exchange)
     def groovy(expression: String) =     Languages.this.groovy(expression)(exchange)
     def header(headerName: String) =     Languages.this.header(headerName)(exchange)
     def javascript(expression: String) = Languages.this.javascript(expression)(exchange)
@@ -38,6 +39,7 @@ trait Languages {
     def mvel(expression: String) =       Languages.this.mvel(expression)(exchange)
     def ognl(expression: String) =       Languages.this.ognl(expression)(exchange)
     def php(expression: String) =        Languages.this.php(expression)(exchange)
+    @Deprecated
     def property(propertyName: String) = Languages.this.property(propertyName)(exchange)
     def python(expression: String) =     Languages.this.python(expression)(exchange)
     def ref(expression: String) =        Languages.this.ref(expression)(exchange)
@@ -58,6 +60,7 @@ trait Languages {
   // a set of methods to allow direct use of the language as an expression
   def constant(expression: String)(exchange: Exchange) =   Languages.evaluate(expression)(exchange)("constant")
   def el(expression: String)(exchange: Exchange) =         Languages.evaluate(expression)(exchange)("el")
+  def exchangeProperty(propertyName: String)(exchange: Exchange) = Languages.evaluate(propertyName)(exchange)("exchangeProperty")
   def groovy(expression: String)(exchange: Exchange) =     Languages.evaluate(expression)(exchange)("groovy")
   def header(headerName: String)(exchange: Exchange) =     Languages.evaluate(headerName)(exchange)("header")
   def javascript(expression: String)(exchange: Exchange) = Languages.evaluate(expression)(exchange)("javascript")
@@ -67,7 +70,8 @@ trait Languages {
   def mvel(expression: String)(exchange: Exchange) =       Languages.evaluate(expression)(exchange)("mvel")
   def ognl(expression: String)(exchange: Exchange) =       Languages.evaluate(expression)(exchange)("ognl")
   def php(expression: String)(exchange: Exchange) =        Languages.evaluate(expression)(exchange)("php")
-  def property(propertyName: String)(exchange: Exchange) = Languages.evaluate(propertyName)(exchange)("property")
+  @Deprecated
+  def property(propertyName: String)(exchange: Exchange) = Languages.evaluate(propertyName)(exchange)("exchangeProperty")
   def python(expression: String)(exchange: Exchange) =     Languages.evaluate(expression)(exchange)("python")
   def ref(expression: String)(exchange: Exchange) =        Languages.evaluate(expression)(exchange)("ref")
   def ruby(expression: String)(exchange: Exchange) =       Languages.evaluate(expression)(exchange)("ruby")


Mime
View raw message