You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dk...@apache.org on 2011/09/20 19:17:11 UTC
svn commit: r1173263 - in /camel/branches/camel-2.8.x: ./
camel-core/src/main/java/org/apache/camel/model/
camel-core/src/test/java/org/apache/camel/processor/
camel-core/src/test/resources/org/apache/camel/processor/
Author: dkulp
Date: Tue Sep 20 17:17:11 2011
New Revision: 1173263
URL: http://svn.apache.org/viewvc?rev=1173263&view=rev
Log:
Merged revisions 1158840 via svnmerge from
https://svn.apache.org/repos/asf/camel/trunk
........
r1158840 | boday | 2011-08-17 13:21:55 -0400 (Wed, 17 Aug 2011) | 1 line
CAMEL-4217 - added Java DSL support for route autoStartup(String|boolean)
........
Added:
camel/branches/camel-2.8.x/camel-core/src/test/java/org/apache/camel/processor/RouteAutoStartupTest.java
- copied unchanged from r1158840, camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RouteAutoStartupTest.java
camel/branches/camel-2.8.x/camel-core/src/test/resources/org/apache/camel/processor/routeAutoStartupTest.properties
- copied unchanged from r1158840, camel/trunk/camel-core/src/test/resources/org/apache/camel/processor/routeAutoStartupTest.properties
Modified:
camel/branches/camel-2.8.x/ (props changed)
camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java
Propchange: camel/branches/camel-2.8.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java?rev=1173263&r1=1173262&r2=1173263&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java (original)
+++ camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/model/RouteDefinition.java Tue Sep 20 17:17:11 2011
@@ -442,6 +442,28 @@ public class RouteDefinition extends Pro
}
/**
+ * Sets the auto startup property on this route.
+ *
+ * @param autoStartup - String indicator ("true" or "false")
+ * @return the builder
+ */
+ public RouteDefinition autoStartup(String autoStartup) {
+ setAutoStartup(autoStartup);
+ return this;
+ }
+
+ /**
+ * Sets the auto startup property on this route.
+ *
+ * @param autoStartup - boolean indicator
+ * @return the builder
+ */
+ public RouteDefinition autoStartup(boolean autoStartup) {
+ setAutoStartup(Boolean.toString(autoStartup));
+ return this;
+ }
+
+ /**
* Configures the startup order for this route
* <p/>
* Camel will reorder routes and star them ordered by 0..N where 0 is the lowest number and N the highest number.
@@ -802,5 +824,4 @@ public class RouteDefinition extends Pro
routeContext.commit();
return routeContext;
}
-
}