camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r573180 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
Date Thu, 06 Sep 2007 08:48:37 GMT
Author: jstrachan
Date: Thu Sep  6 01:48:35 2007
New Revision: 573180

URL: http://svn.apache.org/viewvc?rev=573180&view=rev
Log:
allow a constant value to be easily used in an expression

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java?rev=573180&r1=573179&r2=573180&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
Thu Sep  6 01:48:35 2007
@@ -123,6 +123,13 @@
     }
 
     /**
+     * Returns a constant expression value builder
+     */
+    public ValueBuilder constant(Object value) {
+        return Builder.constant(value);
+    }
+    
+    /**
      * Resolves the given URI to an endpoint
      * 
      * @throws NoSuchEndpointException if the endpoint URI could not be resolved



Mime
View raw message