This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/master by this push:
new fba6ab1 [create-pull-request] automated change
fba6ab1 is described below
commit fba6ab11c6608d9ffb806c8567dcd89571351e6a
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Oct 2 00:54:21 2020 +0000
[create-pull-request] automated change
---
.../springboot/catalog/components/infinispan.json | 8 ++++
.../src/main/docs/infinispan-starter.adoc | 6 ++-
.../InfinispanComponentConfiguration.java | 52 ++++++++++++++++++++++
docs/modules/ROOT/pages/infinispan-starter.adoc | 6 ++-
tooling/camel-spring-boot-dependencies/pom.xml | 2 +-
5 files changed, 71 insertions(+), 3 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/infinispan.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/infinispan.json
index c75f426..f5f9c5a 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/infinispan.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/infinispan.json
@@ -31,8 +31,12 @@
"customListener": { "kind": "property", "displayName": "Custom Listener",
"group": "consumer", "label": "consumer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.infinispan.InfinispanCustomListener",
"deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Returns the custom
listener in use, if provided" },
"eventTypes": { "kind": "property", "displayName": "Event Types", "group":
"consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Specifies the set of
event types to register by the consumer. Multiple event can be separated by
comma. The possible event types ar [...]
"sync": { "kind": "property", "displayName": "Sync", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "secret": false, "defaultValue": "true",
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "If true, the consumer
will receive notifications synchronously" },
+ "defaultValue": { "kind": "property", "displayName": "Default Value",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "java.lang.Object", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific default
value for some producer operations" },
+ "key": { "kind": "property", "displayName": "Key", "group": "producer",
"label": "producer", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific key for
producer operations" },
"lazyStartProducer": { "kind": "property", "displayName": "Lazy Start
Producer", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a producer may otherwise
fail during starting and cause the r [...]
+ "oldValue": { "kind": "property", "displayName": "Old Value", "group":
"producer", "label": "producer", "required": false, "type": "object",
"javaType": "java.lang.Object", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific old value
for some producer operations" },
"operation": { "kind": "property", "displayName": "Operation", "group":
"producer", "label": "producer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.infinispan.InfinispanOperation",
"enum": [ "PUT", "PUTASYNC", "PUTALL", "PUTALLASYNC", "PUTIFABSENT",
"PUTIFABSENTASYNC", "GET", "GETORDEFAULT", "CONTAINSKEY", "CONTAINSVALUE",
"REMOVE", "REMOVEASYNC", "REPLACE", "REPLACEASYNC", "SIZE", "CLEAR",
"CLEARASYNC", "QUERY", "STATS", "COMPUTE", "COMPUTEASYNC" ], [...]
+ "value": { "kind": "property", "displayName": "Value", "group":
"producer", "label": "producer", "required": false, "type": "object",
"javaType": "java.lang.Object", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific value for
producer operations" },
"basicPropertyBinding": { "kind": "property", "displayName": "Basic
Property Binding", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": true, "secret": false,
"defaultValue": false, "description": "Whether the component should use basic
property binding (Camel 2.x) or the newer property binding with additional
capabilities" },
"cacheContainer": { "kind": "property", "displayName": "Cache Container",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "org.infinispan.commons.api.BasicCacheContainer", "deprecated":
false, "secret": false, "configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Specifies the cache
Container to connect" },
"cacheContainerConfiguration": { "kind": "property", "displayName": "Cache
Container Configuration", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType": "java.lang.Object", "deprecated": false,
"secret": false, "configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "The CacheContainer
configuration. Uses if the cacheContainer is not defined. Must be the followi
[...]
@@ -54,8 +58,12 @@
"sync": { "kind": "parameter", "displayName": "Sync", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "secret": false, "defaultValue": "true",
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "If true, the consumer
will receive notifications synchronously" },
"exceptionHandler": { "kind": "parameter", "displayName": "Exception
Handler", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "secret": false, "description": "To let the consumer use a
custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled
then this option is not in use. By default the consumer will deal with [...]
"exchangePattern": { "kind": "parameter", "displayName": "Exchange
Pattern", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut",
"InOptionalOut" ], "deprecated": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
+ "defaultValue": { "kind": "parameter", "displayName": "Default Value",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "java.lang.Object", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific default
value for some producer operations" },
+ "key": { "kind": "parameter", "displayName": "Key", "group": "producer",
"label": "producer", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific key for
producer operations" },
"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a producer may otherwise
fail during starting and cause the [...]
+ "oldValue": { "kind": "parameter", "displayName": "Old Value", "group":
"producer", "label": "producer", "required": false, "type": "object",
"javaType": "java.lang.Object", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific old value
for some producer operations" },
"operation": { "kind": "parameter", "displayName": "Operation", "group":
"producer", "label": "producer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.infinispan.InfinispanOperation",
"enum": [ "PUT", "PUTASYNC", "PUTALL", "PUTALLASYNC", "PUTIFABSENT",
"PUTIFABSENTASYNC", "GET", "GETORDEFAULT", "CONTAINSKEY", "CONTAINSVALUE",
"REMOVE", "REMOVEASYNC", "REPLACE", "REPLACEASYNC", "SIZE", "CLEAR",
"CLEARASYNC", "QUERY", "STATS", "COMPUTE", "COMPUTEASYNC" ] [...]
+ "value": { "kind": "parameter", "displayName": "Value", "group":
"producer", "label": "producer", "required": false, "type": "object",
"javaType": "java.lang.Object", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Set a specific value for
producer operations" },
"basicPropertyBinding": { "kind": "parameter", "displayName": "Basic
Property Binding", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": false, "description": "Whether the endpoint should use basic
property binding (Camel 2.x) or the newer property binding with additional
capabilities" },
"cacheContainer": { "kind": "parameter", "displayName": "Cache Container",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "org.infinispan.commons.api.BasicCacheContainer", "deprecated":
false, "secret": false, "configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "Specifies the cache
Container to connect" },
"cacheContainerConfiguration": { "kind": "parameter", "displayName":
"Cache Container Configuration", "group": "advanced", "label": "advanced",
"required": false, "type": "object", "javaType": "java.lang.Object",
"deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.infinispan.InfinispanConfiguration",
"configurationField": "configuration", "description": "The CacheContainer
configuration. Uses if the cacheContainer is not defined. Must be the follow
[...]
diff --git
a/components-starter/camel-infinispan-starter/src/main/docs/infinispan-starter.adoc
b/components-starter/camel-infinispan-starter/src/main/docs/infinispan-starter.adoc
index 493fbae..d79adaf 100644
---
a/components-starter/camel-infinispan-starter/src/main/docs/infinispan-starter.adoc
+++
b/components-starter/camel-infinispan-starter/src/main/docs/infinispan-starter.adoc
@@ -17,7 +17,7 @@ When using infinispan with Spring Boot make sure to use the
following Maven depe
----
-The component supports 24 options, which are listed below.
+The component supports 28 options, which are listed below.
@@ -36,16 +36,20 @@ The component supports 24 options, which are listed below.
| *camel.component.infinispan.customizer.embedded-cache-manager.override* |
Configure if the cache manager eventually set on the component should be
overridden by the customizer. | false | Boolean
| *camel.component.infinispan.customizer.remote-cache-manager.enabled* |
Enable or disable the cache-manager customizer. | true | Boolean
| *camel.component.infinispan.customizer.remote-cache-manager.override* |
Configure if the cache manager eventually set on the component should be
overridden by the customizer. | false | Boolean
+| *camel.component.infinispan.default-value* | Set a specific default value
for some producer operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.enabled* | Whether to enable auto configuration
of the infinispan component. This is enabled by default. | | Boolean
| *camel.component.infinispan.event-types* | Specifies the set of event types
to register by the consumer. Multiple event can be separated by comma. The
possible event types are: CACHE_ENTRY_ACTIVATED, CACHE_ENTRY_PASSIVATED,
CACHE_ENTRY_VISITED, CACHE_ENTRY_LOADED, CACHE_ENTRY_EVICTED,
CACHE_ENTRY_CREATED, CACHE_ENTRY_REMOVED, CACHE_ENTRY_MODIFIED,
TRANSACTION_COMPLETED, TRANSACTION_REGISTERED, CACHE_ENTRY_INVALIDATED,
DATA_REHASHED, TOPOLOGY_CHANGED, PARTITION_STATUS_CHANGED | | String
| *camel.component.infinispan.flags* | A comma separated list of Flag to be
applied by default on each cache invocation, not applicable to remote caches. |
| String
| *camel.component.infinispan.hosts* | Specifies the host of the cache on
Infinispan instance | | String
+| *camel.component.infinispan.key* | Set a specific key for producer
operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.lazy-start-producer* | Whether the producer
should be started lazy (on the first message). By starting lazy you can use
this to allow CamelContext and routes to startup in situations where a producer
may otherwise fail during starting and cause the route to fail being started.
By deferring this startup to be lazy then the startup failure can be handled
during routing messages via Camel's routing error handlers. Beware that when
the first message is processed [...]
+| *camel.component.infinispan.old-value* | Set a specific old value for some
producer operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.operation* | The operation to perform. | |
InfinispanOperation
| *camel.component.infinispan.query-builder* | Specifies the query builder.
The option is a org.apache.camel.component.infinispan.InfinispanQueryBuilder
type. | | String
| *camel.component.infinispan.remapping-function* | Set a specific
remappingFunction to use in a compute operation. The option is a
java.util.function.BiFunction type. | | String
| *camel.component.infinispan.result-header* | Store the operation result in a
header instead of the message body. By default, resultHeader == null and the
query result is stored in the message body, any existing content in the message
body is discarded. If resultHeader is set, the value is used as the name of the
header to store the query result and the original message body is preserved.
This value can be overridden by an in message header named:
CamelInfinispanOperationResultHeader. T [...]
| *camel.component.infinispan.sync* | If true, the consumer will receive
notifications synchronously | true | Boolean
+| *camel.component.infinispan.value* | Set a specific value for producer
operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.basic-property-binding* | *Deprecated* Whether
the component should use basic property binding (Camel 2.x) or the newer
property binding with additional capabilities | false | Boolean
| *camel.component.infinispan.command* | *Deprecated* The operation to
perform. | PUT | String
|===
diff --git
a/components-starter/camel-infinispan-starter/src/main/java/org/apache/camel/component/infinispan/springboot/InfinispanComponentConfiguration.java
b/components-starter/camel-infinispan-starter/src/main/java/org/apache/camel/component/infinispan/springboot/InfinispanComponentConfiguration.java
index 1ba32a8..d6ac4d5 100644
---
a/components-starter/camel-infinispan-starter/src/main/java/org/apache/camel/component/infinispan/springboot/InfinispanComponentConfiguration.java
+++
b/components-starter/camel-infinispan-starter/src/main/java/org/apache/camel/component/infinispan/springboot/InfinispanComponentConfiguration.java
@@ -92,6 +92,16 @@ public class InfinispanComponentConfiguration
*/
private Boolean sync = true;
/**
+ * Set a specific default value for some producer operations. The option is
+ * a java.lang.Object type.
+ */
+ private String defaultValue;
+ /**
+ * Set a specific key for producer operations. The option is a
+ * java.lang.Object type.
+ */
+ private String key;
+ /**
* Whether the producer should be started lazy (on the first message). By
* starting lazy you can use this to allow CamelContext and routes to
* startup in situations where a producer may otherwise fail during
starting
@@ -103,10 +113,20 @@ public class InfinispanComponentConfiguration
*/
private Boolean lazyStartProducer = false;
/**
+ * Set a specific old value for some producer operations. The option is a
+ * java.lang.Object type.
+ */
+ private String oldValue;
+ /**
* The operation to perform.
*/
private InfinispanOperation operation = InfinispanOperation.PUT;
/**
+ * Set a specific value for producer operations. The option is a
+ * java.lang.Object type.
+ */
+ private String value;
+ /**
* Whether the component should use basic property binding (Camel 2.x) or
* the newer property binding with additional capabilities
*/
@@ -231,6 +251,22 @@ public class InfinispanComponentConfiguration
this.sync = sync;
}
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ public void setDefaultValue(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
public Boolean getLazyStartProducer() {
return lazyStartProducer;
}
@@ -239,6 +275,14 @@ public class InfinispanComponentConfiguration
this.lazyStartProducer = lazyStartProducer;
}
+ public String getOldValue() {
+ return oldValue;
+ }
+
+ public void setOldValue(String oldValue) {
+ this.oldValue = oldValue;
+ }
+
public InfinispanOperation getOperation() {
return operation;
}
@@ -247,6 +291,14 @@ public class InfinispanComponentConfiguration
this.operation = operation;
}
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
@Deprecated
@DeprecatedConfigurationProperty
public Boolean getBasicPropertyBinding() {
diff --git a/docs/modules/ROOT/pages/infinispan-starter.adoc
b/docs/modules/ROOT/pages/infinispan-starter.adoc
index 493fbae..d79adaf 100644
--- a/docs/modules/ROOT/pages/infinispan-starter.adoc
+++ b/docs/modules/ROOT/pages/infinispan-starter.adoc
@@ -17,7 +17,7 @@ When using infinispan with Spring Boot make sure to use the
following Maven depe
----
-The component supports 24 options, which are listed below.
+The component supports 28 options, which are listed below.
@@ -36,16 +36,20 @@ The component supports 24 options, which are listed below.
| *camel.component.infinispan.customizer.embedded-cache-manager.override* |
Configure if the cache manager eventually set on the component should be
overridden by the customizer. | false | Boolean
| *camel.component.infinispan.customizer.remote-cache-manager.enabled* |
Enable or disable the cache-manager customizer. | true | Boolean
| *camel.component.infinispan.customizer.remote-cache-manager.override* |
Configure if the cache manager eventually set on the component should be
overridden by the customizer. | false | Boolean
+| *camel.component.infinispan.default-value* | Set a specific default value
for some producer operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.enabled* | Whether to enable auto configuration
of the infinispan component. This is enabled by default. | | Boolean
| *camel.component.infinispan.event-types* | Specifies the set of event types
to register by the consumer. Multiple event can be separated by comma. The
possible event types are: CACHE_ENTRY_ACTIVATED, CACHE_ENTRY_PASSIVATED,
CACHE_ENTRY_VISITED, CACHE_ENTRY_LOADED, CACHE_ENTRY_EVICTED,
CACHE_ENTRY_CREATED, CACHE_ENTRY_REMOVED, CACHE_ENTRY_MODIFIED,
TRANSACTION_COMPLETED, TRANSACTION_REGISTERED, CACHE_ENTRY_INVALIDATED,
DATA_REHASHED, TOPOLOGY_CHANGED, PARTITION_STATUS_CHANGED | | String
| *camel.component.infinispan.flags* | A comma separated list of Flag to be
applied by default on each cache invocation, not applicable to remote caches. |
| String
| *camel.component.infinispan.hosts* | Specifies the host of the cache on
Infinispan instance | | String
+| *camel.component.infinispan.key* | Set a specific key for producer
operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.lazy-start-producer* | Whether the producer
should be started lazy (on the first message). By starting lazy you can use
this to allow CamelContext and routes to startup in situations where a producer
may otherwise fail during starting and cause the route to fail being started.
By deferring this startup to be lazy then the startup failure can be handled
during routing messages via Camel's routing error handlers. Beware that when
the first message is processed [...]
+| *camel.component.infinispan.old-value* | Set a specific old value for some
producer operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.operation* | The operation to perform. | |
InfinispanOperation
| *camel.component.infinispan.query-builder* | Specifies the query builder.
The option is a org.apache.camel.component.infinispan.InfinispanQueryBuilder
type. | | String
| *camel.component.infinispan.remapping-function* | Set a specific
remappingFunction to use in a compute operation. The option is a
java.util.function.BiFunction type. | | String
| *camel.component.infinispan.result-header* | Store the operation result in a
header instead of the message body. By default, resultHeader == null and the
query result is stored in the message body, any existing content in the message
body is discarded. If resultHeader is set, the value is used as the name of the
header to store the query result and the original message body is preserved.
This value can be overridden by an in message header named:
CamelInfinispanOperationResultHeader. T [...]
| *camel.component.infinispan.sync* | If true, the consumer will receive
notifications synchronously | true | Boolean
+| *camel.component.infinispan.value* | Set a specific value for producer
operations. The option is a java.lang.Object type. | | String
| *camel.component.infinispan.basic-property-binding* | *Deprecated* Whether
the component should use basic property binding (Camel 2.x) or the newer
property binding with additional capabilities | false | Boolean
| *camel.component.infinispan.command* | *Deprecated* The operation to
perform. | PUT | String
|===
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml
b/tooling/camel-spring-boot-dependencies/pom.xml
index c29c21e..ce1e5a6 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -174,7 +174,7 @@
<dependency>
<groupId>net.corda</groupId>
<artifactId>corda-rpc</artifactId>
- <version>4.5</version>
+ <version>4.6</version>
<exclusions>
<exclusion>
<groupId>co.paralleluniverse</groupId>