Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D77EC738 for ; Thu, 24 May 2012 12:04:26 +0000 (UTC) Received: (qmail 42562 invoked by uid 500); 24 May 2012 12:04:26 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 42490 invoked by uid 500); 24 May 2012 12:04:25 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 42466 invoked by uid 99); 24 May 2012 12:04:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 12:04:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 12:04:21 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 85AA12388978; Thu, 24 May 2012 12:03:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1342214 - in /camel/trunk/camel-core/src/main/java/org/apache/camel: CamelContext.java model/ModelCamelContext.java model/ProcessorDefinition.java Date: Thu, 24 May 2012 12:03:59 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120524120359.85AA12388978@eris.apache.org> Author: davsclaus Date: Thu May 24 12:03:58 2012 New Revision: 1342214 URL: http://svn.apache.org/viewvc?rev=1342214&view=rev Log: Added javadoc about route id should be unique Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java camel/trunk/camel-core/src/main/java/org/apache/camel/model/ModelCamelContext.java camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java?rev=1342214&r1=1342213&r2=1342214&view=diff ============================================================================== --- camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java Thu May 24 12:03:58 2012 @@ -366,6 +366,10 @@ public interface CamelContext extends Su * Important: The added routes will only be started, if {@link CamelContext} * is already started. You may want to check the state of {@link CamelContext} before * adding the routes, using the {@link org.apache.camel.CamelContext#getStatus()} method. + *

+ * Important: Each route in the same {@link org.apache.camel.CamelContext} must have an unique route id. + * If you use the API from {@link org.apache.camel.CamelContext} or {@link org.apache.camel.model.ModelCamelContext} to add routes, then any + * new routes which has a route id that matches an old route, then the old route is replaced by the new route. * * @param builder the builder which will create the routes and add them to this context * @throws Exception if the routes could not be created for whatever reason Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ModelCamelContext.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ModelCamelContext.java?rev=1342214&r1=1342213&r2=1342214&view=diff ============================================================================== --- camel/trunk/camel-core/src/main/java/org/apache/camel/model/ModelCamelContext.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/ModelCamelContext.java Thu May 24 12:03:58 2012 @@ -54,6 +54,10 @@ public interface ModelCamelContext exten /** * Adds a collection of route definitions to the context + *

+ * Important: Each route in the same {@link org.apache.camel.CamelContext} must have an unique route id. + * If you use the API from {@link org.apache.camel.CamelContext} or {@link org.apache.camel.model.ModelCamelContext} to add routes, then any + * new routes which has a route id that matches an old route, then the old route is replaced by the new route. * * @param routeDefinitions the route(s) definition to add * @throws Exception if the route definitions could not be created for whatever reason @@ -62,6 +66,10 @@ public interface ModelCamelContext exten /** * Add a route definition to the context + *

+ * Important: Each route in the same {@link org.apache.camel.CamelContext} must have an unique route id. + * If you use the API from {@link org.apache.camel.CamelContext} or {@link org.apache.camel.model.ModelCamelContext} to add routes, then any + * new routes which has a route id that matches an old route, then the old route is replaced by the new route. * * @param routeDefinition the route definition to add * @throws Exception if the route definition could not be created for whatever reason Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java?rev=1342214&r1=1342213&r2=1342214&view=diff ============================================================================== --- camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java Thu May 24 12:03:58 2012 @@ -989,9 +989,13 @@ public abstract class ProcessorDefinitio } /** - * Set the route id for this route + * Set the route id for this route. + *

+ * Important: Each route in the same {@link org.apache.camel.CamelContext} must have an unique route id. + * If you use the API from {@link org.apache.camel.CamelContext} or {@link ModelCamelContext} to add routes, then any + * new routes which has a route id that matches an old route, then the old route is replaced by the new route. * - * @param id the route id + * @param id the route id, should be unique * @return the builder */ @SuppressWarnings("unchecked")