You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/02/07 13:24:34 UTC
[camel] branch camel-3.7.x updated: CAMEL-16161: Route template
does not support autoStartup
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.7.x by this push:
new c99717d CAMEL-16161: Route template does not support autoStartup
c99717d is described below
commit c99717d41cea0292da0d08ec273a1492a46f4e9f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Feb 7 14:23:23 2021 +0100
CAMEL-16161: Route template does not support autoStartup
---
.../camel/model/RouteTemplateDefinition.java | 27 +++++++++++-----------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/RouteTemplateDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/RouteTemplateDefinition.java
index e5fa49f..e799ed9 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/RouteTemplateDefinition.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/RouteTemplateDefinition.java
@@ -186,26 +186,27 @@ public class RouteTemplateDefinition extends OptionalIdentifiedDefinition {
RouteDefinition copy = new RouteDefinition();
// do not copy id as it is used for route template id
- copy.setInheritErrorHandler(route.isInheritErrorHandler());
+ copy.setAutoStartup(route.getAutoStartup());
+ copy.setDelayer(route.getDelayer());
+ copy.setErrorHandlerFactory(route.getErrorHandlerFactory());
+ copy.setErrorHandlerRef(route.getErrorHandlerRef());
copy.setGroup(route.getGroup());
- copy.setStreamCache(route.getStreamCache());
- copy.setTrace(route.getTrace());
- copy.setMessageHistory(route.getMessageHistory());
+ copy.setInheritErrorHandler(route.isInheritErrorHandler());
+ copy.setInput(route.getInput());
+ copy.setInputType(route.getInputType());
copy.setLogMask(route.getLogMask());
- copy.setDelayer(route.getDelayer());
- copy.setStartupOrder(route.getStartupOrder());
+ copy.setMessageHistory(route.getMessageHistory());
+ copy.setOutputType(route.getOutputType());
+ copy.setOutputs(route.getOutputs());
copy.setRoutePolicies(route.getRoutePolicies());
copy.setRoutePolicyRef(route.getRoutePolicyRef());
+ copy.setRouteProperties(route.getRouteProperties());
copy.setShutdownRoute(route.getShutdownRoute());
copy.setShutdownRunningTask(route.getShutdownRunningTask());
- copy.setErrorHandlerRef(route.getErrorHandlerRef());
- copy.setErrorHandlerFactory(route.getErrorHandlerFactory());
- copy.setInputType(route.getInputType());
- copy.setOutputType(route.getOutputType());
- copy.setRouteProperties(route.getRouteProperties());
+ copy.setStartupOrder(route.getStartupOrder());
+ copy.setStreamCache(route.getStreamCache());
copy.setTemplate(true);
- copy.setInput(route.getInput());
- copy.setOutputs(route.getOutputs());
+ copy.setTrace(route.getTrace());
if (route.getDescription() != null) {
copy.setDescription(route.getDescription());
} else {