Return-Path: Delivered-To: apmail-activemq-camel-commits-archive@locus.apache.org Received: (qmail 23695 invoked from network); 6 Sep 2007 08:49:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 08:49:02 -0000 Received: (qmail 23349 invoked by uid 500); 6 Sep 2007 08:48:55 -0000 Delivered-To: apmail-activemq-camel-commits-archive@activemq.apache.org Received: (qmail 23332 invoked by uid 500); 6 Sep 2007 08:48:55 -0000 Mailing-List: contact camel-commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-commits@activemq.apache.org Received: (qmail 23323 invoked by uid 99); 6 Sep 2007 08:48:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 01:48:55 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 08:50:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 292731A9832; Thu, 6 Sep 2007 01:48:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: camel-commits@activemq.apache.org From: jstrachan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070906084838.292731A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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