This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new a4f3cbe Added more docs for XML DSL
a4f3cbe is described below
commit a4f3cbea0d1f08f72bbfd9a878f37a54adebf5c9
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Mar 20 08:45:01 2020 +0100
Added more docs for XML DSL
---
.../org/apache/camel/blueprint/CamelContextFactoryBean.java | 2 +-
.../java/org/apache/camel/maven/DocumentationEnricher.java | 12 +++++++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git
a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
index cb55279..d39a199 100644
---
a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
+++
b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
@@ -957,7 +957,7 @@ public class CamelContextFactoryBean extends
AbstractCamelContextFactoryBean<Blu
* Whether to automatic detect OSGi Blueprint property placeholder service
in use,
* and bridge with Camel property placeholder.
* When enabled this allows you to only setup OSGi Blueprint property
placeholder
- * and Camel can use the properties in the <camelContext>.
+ * and Camel can use the properties in the camelContext.
*/
public void setUseBlueprintPropertyResolver(Boolean
useBlueprintPropertyResolver) {
this.useBlueprintPropertyResolver = useBlueprintPropertyResolver;
diff --git
a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
index ca21c01..15eefeb 100644
---
a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
+++
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
@@ -75,7 +75,6 @@ public class DocumentationEnricher {
return;
}
-
BaseModel<?> model = JsonMapper.generateModel(jsonFile.toPath());
BaseOptionModel option = Stream.concat(model.getOptions().stream(),
model instanceof ComponentModel ? ((ComponentModel)
model).getEndpointOptions().stream() : Stream.empty())
@@ -85,6 +84,17 @@ public class DocumentationEnricher {
String descriptionText = option != null ? option.getDescription() :
null;
Object defaultValueText = option != null ? option.getDefaultValue() :
null;
+ // special for this option
+ if ("useBlueprintPropertyResolver".equals(name)) {
+ descriptionText = "Whether to automatic detect OSGi Blueprint
property placeholder service in use, and bridge with Camel property
placeholder."
+ + " When enabled this allows you to only setup OSGi
Blueprint property placeholder and Camel can use the properties in the
camelContext.";
+ } else if ("binding".equals(name)) {
+ descriptionText = "In binding mode we bind the passed in arguments
(args) to the created exchange using the existing Camel"
+ + " @Body, @Header, @Headers, @ExchangeProperty
annotations if no annotation then its bound as the message body";
+ } else if ("serviceRef".equals(name) &&
jsonFile.getName().endsWith("proxy.json")) {
+ descriptionText = "Reference to existing endpoint to lookup by
endpoint id in the Camel registry to be used as proxied service";
+ }
+
if (option != null && option.isDeprecated()) {
descriptionText = "Deprecated: " + descriptionText;
}