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 2016/07/28 07:18:17 UTC
[2/2] camel git commit: Fixed CS. This closes #1089
Fixed CS. This closes #1089
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4413f6ca
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4413f6ca
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4413f6ca
Branch: refs/heads/master
Commit: 4413f6cafe0ebb6c701442386d2606e868e11a10
Parents: bdd5f94
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Jul 28 09:16:03 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Jul 28 09:16:03 2016 +0200
----------------------------------------------------------------------
components/camel-spring-batch/src/main/docs/spring-batch.adoc | 4 +++-
.../apache/camel/component/spring/batch/SpringBatchEndpoint.java | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/4413f6ca/components/camel-spring-batch/src/main/docs/spring-batch.adoc
----------------------------------------------------------------------
diff --git a/components/camel-spring-batch/src/main/docs/spring-batch.adoc b/components/camel-spring-batch/src/main/docs/spring-batch.adoc
index 5c9182a..bf82d27 100644
--- a/components/camel-spring-batch/src/main/docs/spring-batch.adoc
+++ b/components/camel-spring-batch/src/main/docs/spring-batch.adoc
@@ -56,6 +56,7 @@ The Spring Batch component supports 1 options which are listed below.
+
// endpoint options: START
The Spring Batch component supports 5 endpoint options which are listed below:
@@ -64,7 +65,7 @@ The Spring Batch component supports 5 endpoint options which are listed below:
|=======================================================================
| Name | Group | Default | Java Type | Description
| jobName | producer | | String | *Required* The name of the Spring Batch job located in the registry.
-| jobFromHeader | producer | | Boolean | Explicitly defines if the jobName shouls be taken from the headers instead of the URI.
+| jobFromHeader | producer | false | boolean | Explicitly defines if the jobName shouls be taken from the headers instead of the URI.
| jobLauncher | producer | | JobLauncher | Explicitly specifies a JobLauncher to be used.
| exchangePattern | advanced | InOnly | ExchangePattern | Sets the default exchange pattern when creating an exchange
| synchronous | advanced | false | boolean | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported).
@@ -73,6 +74,7 @@ The Spring Batch component supports 5 endpoint options which are listed below:
// endpoint options: END
+
[[SpringBatch-Usage]]
Usage
^^^^^
http://git-wip-us.apache.org/repos/asf/camel/blob/4413f6ca/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java b/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java
index 6b9821b..9581ff9 100644
--- a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java
+++ b/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java
@@ -89,7 +89,7 @@ public class SpringBatchEndpoint extends DefaultEndpoint {
if (jobLauncher == null) {
jobLauncher = resolveJobLauncher();
}
- if (job == null && jobName != null && jobFromHeader == false) {
+ if (job == null && jobName != null && !jobFromHeader) {
job = CamelContextHelper.mandatoryLookup(getCamelContext(), jobName, Job.class);
}
}