diff --git a/amqp/pom.xml b/amqp/pom.xml
index d21c9f56..ca6e93dd 100644
--- a/amqp/pom.xml
+++ b/amqp/pom.xml
@@ -6,7 +6,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-amqp-proton
diff --git a/api/pom.xml b/api/pom.xml
index 0137bca7..26307918 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -24,7 +24,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-api
diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml
index b3ed99e1..9ae431f9 100644
--- a/benchmarks/pom.xml
+++ b/benchmarks/pom.xml
@@ -21,7 +21,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-benchmarks
diff --git a/bom/pom.xml b/bom/pom.xml
index e46d97ec..71925fe1 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -22,7 +22,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-bom
diff --git a/core/pom.xml b/core/pom.xml
index 7c01b162..ca29f7f4 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -22,7 +22,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-core
diff --git a/core/src/main/java/io/cloudevents/core/provider/CloudEventValidatorProvider.java b/core/src/main/java/io/cloudevents/core/provider/CloudEventValidatorProvider.java
index 2f6afd61..0945d0b7 100644
--- a/core/src/main/java/io/cloudevents/core/provider/CloudEventValidatorProvider.java
+++ b/core/src/main/java/io/cloudevents/core/provider/CloudEventValidatorProvider.java
@@ -19,8 +19,8 @@
import io.cloudevents.CloudEvent;
import io.cloudevents.core.validator.CloudEventValidator;
-import java.util.Iterator;
-import java.util.ServiceConfigurationError;
+import java.util.ArrayList;
+import java.util.Collection;
import java.util.ServiceLoader;
/**
@@ -30,10 +30,14 @@ public class CloudEventValidatorProvider {
private static final CloudEventValidatorProvider cloudEventValidatorProvider = new CloudEventValidatorProvider();
- private final ServiceLoader loader;
+ private final Collection validators;
- private CloudEventValidatorProvider(){
- loader = ServiceLoader.load(CloudEventValidator.class);
+ private CloudEventValidatorProvider() {
+ final ServiceLoader loader = ServiceLoader.load(CloudEventValidator.class);
+ this.validators = new ArrayList<>(2);
+ for (CloudEventValidator cloudEventValidator : loader) {
+ validators.add(cloudEventValidator);
+ }
}
public static CloudEventValidatorProvider getInstance() {
@@ -42,10 +46,11 @@ public static CloudEventValidatorProvider getInstance() {
/**
* iterates through available Cloudevent validators.
- * @param cloudEvent
+ *
+ * @param cloudEvent event to validate.
*/
- public void validate(CloudEvent cloudEvent){
- for (final CloudEventValidator validator : loader) {
+ public void validate(CloudEvent cloudEvent) {
+ for (final CloudEventValidator validator : validators) {
validator.validate(cloudEvent);
}
}
diff --git a/docs/amqp-proton.md b/docs/amqp-proton.md
index 7f56f9d8..986d2ac2 100644
--- a/docs/amqp-proton.md
+++ b/docs/amqp-proton.md
@@ -18,7 +18,7 @@ binding for CloudEvents:
io.cloudevents
cloudevents-amqp-proton
- 4.0.0
+ 4.0.1
```
diff --git a/docs/api.md b/docs/api.md
index 9e27c2b4..0722d0fa 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -17,7 +17,7 @@ For Maven based projects, use the following dependency:
io.cloudevents
cloudevents-api
- 4.0.0
+ 4.0.1
```
diff --git a/docs/avro.md b/docs/avro.md
index 6d91058f..31fa3e71 100644
--- a/docs/avro.md
+++ b/docs/avro.md
@@ -16,7 +16,7 @@ For Maven based projects, use the following dependency:
io.cloudevents
cloudevents-avro-compact
- 4.0.0
+ 4.0.1
```
diff --git a/docs/core.md b/docs/core.md
index 2af5b3c1..b269d0f1 100644
--- a/docs/core.md
+++ b/docs/core.md
@@ -16,7 +16,7 @@ For Maven based projects, use the following dependency:
io.cloudevents
cloudevents-core
- 4.0.0
+ 4.0.1
```
diff --git a/docs/http-basic.md b/docs/http-basic.md
index 42308fd6..29b5c3a7 100644
--- a/docs/http-basic.md
+++ b/docs/http-basic.md
@@ -27,7 +27,7 @@ HTTP Transport:
io.cloudevents
cloudevents-http-basic
- 4.0.0
+ 4.0.1
```
diff --git a/docs/http-jakarta-restful-ws-jakarta.md b/docs/http-jakarta-restful-ws-jakarta.md
index ff078ad9..a2051321 100644
--- a/docs/http-jakarta-restful-ws-jakarta.md
+++ b/docs/http-jakarta-restful-ws-jakarta.md
@@ -14,7 +14,7 @@ RESTful Web Services Binding for Jakarta EE 9+:
io.cloudevents
cloudevents-http-restful-ws-jakarta
- 4.0.0
+ 4.0.1
```
diff --git a/docs/http-jakarta-restful-ws.md b/docs/http-jakarta-restful-ws.md
index 1d178575..fdcdf804 100644
--- a/docs/http-jakarta-restful-ws.md
+++ b/docs/http-jakarta-restful-ws.md
@@ -14,7 +14,7 @@ RESTful Web Services Binding for Jakarta EE 8:
io.cloudevents
cloudevents-http-restful-ws
- 4.0.0
+ 4.0.1
```
diff --git a/docs/http-vertx.md b/docs/http-vertx.md
index d0184269..6d0787aa 100644
--- a/docs/http-vertx.md
+++ b/docs/http-vertx.md
@@ -14,7 +14,7 @@ HTTP Transport:
io.cloudevents
cloudevents-http-vertx
- 4.0.0
+ 4.0.1
```
diff --git a/docs/json-jackson.md b/docs/json-jackson.md
index f3e93083..7fe61b6f 100644
--- a/docs/json-jackson.md
+++ b/docs/json-jackson.md
@@ -17,7 +17,7 @@ For Maven based projects, use the following dependency:
io.cloudevents
cloudevents-json-jackson
- 4.0.0
+ 4.0.1
```
diff --git a/docs/kafka.md b/docs/kafka.md
index 33d3dd1c..dd2f6148 100644
--- a/docs/kafka.md
+++ b/docs/kafka.md
@@ -17,7 +17,7 @@ For Maven based projects, use the following to configure the
io.cloudevents
cloudevents-kafka
- 4.0.0
+ 4.0.1
```
diff --git a/docs/protobuf.md b/docs/protobuf.md
index 37007472..b25ffde6 100644
--- a/docs/protobuf.md
+++ b/docs/protobuf.md
@@ -18,7 +18,7 @@ For Maven based projects, use the following dependency:
io.cloudevents
cloudevents-protobuf
- 4.0.0
+ 4.0.1
```
diff --git a/docs/spring.md b/docs/spring.md
index 7b658938..c12ec6a8 100644
--- a/docs/spring.md
+++ b/docs/spring.md
@@ -17,7 +17,7 @@ For Maven based projects, use the following dependency:
io.cloudevents
cloudevents-spring
- 4.0.0
+ 4.0.1
```
diff --git a/docs/xml.md b/docs/xml.md
index c906ea73..dcb889ab 100644
--- a/docs/xml.md
+++ b/docs/xml.md
@@ -18,7 +18,7 @@ For Maven based projects, use the following dependency:
io.cloudevents
cloudevents-xml
- 4.0.0
+ 4.0.1
```
diff --git a/examples/amqp-proton/pom.xml b/examples/amqp-proton/pom.xml
index 7cbd68f8..9289ed83 100644
--- a/examples/amqp-proton/pom.xml
+++ b/examples/amqp-proton/pom.xml
@@ -3,7 +3,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/basic-http/pom.xml b/examples/basic-http/pom.xml
index 845f2836..6a6f0e6d 100644
--- a/examples/basic-http/pom.xml
+++ b/examples/basic-http/pom.xml
@@ -21,7 +21,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/kafka/pom.xml b/examples/kafka/pom.xml
index 510679d8..3ca9f507 100644
--- a/examples/kafka/pom.xml
+++ b/examples/kafka/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/pom.xml b/examples/pom.xml
index d7b02fdc..57d39966 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -5,7 +5,7 @@
cloudevents-parent
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/restful-ws-microprofile-liberty/pom.xml b/examples/restful-ws-microprofile-liberty/pom.xml
index d17145bc..504ecf45 100644
--- a/examples/restful-ws-microprofile-liberty/pom.xml
+++ b/examples/restful-ws-microprofile-liberty/pom.xml
@@ -3,7 +3,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/examples/restful-ws-quarkus/pom.xml b/examples/restful-ws-quarkus/pom.xml
index 8c0ef06d..48ba59b6 100644
--- a/examples/restful-ws-quarkus/pom.xml
+++ b/examples/restful-ws-quarkus/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
cloudevents-restful-ws-quarkus-example
diff --git a/examples/restful-ws-spring-boot/pom.xml b/examples/restful-ws-spring-boot/pom.xml
index c3ac7a03..e13509a1 100644
--- a/examples/restful-ws-spring-boot/pom.xml
+++ b/examples/restful-ws-spring-boot/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/rocketmq/pom.xml b/examples/rocketmq/pom.xml
index a36ff129..1aa3d0f9 100644
--- a/examples/rocketmq/pom.xml
+++ b/examples/rocketmq/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/spring-function/pom.xml b/examples/spring-function/pom.xml
index 5506ce93..8a5ea21a 100644
--- a/examples/spring-function/pom.xml
+++ b/examples/spring-function/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/spring-reactive/pom.xml b/examples/spring-reactive/pom.xml
index 0c689f45..e2ab1d14 100644
--- a/examples/spring-reactive/pom.xml
+++ b/examples/spring-reactive/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/spring-rsocket/pom.xml b/examples/spring-rsocket/pom.xml
index c86e3e0c..2633713c 100644
--- a/examples/spring-rsocket/pom.xml
+++ b/examples/spring-rsocket/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/examples/vertx/pom.xml b/examples/vertx/pom.xml
index 5cb27b97..fe569f3a 100644
--- a/examples/vertx/pom.xml
+++ b/examples/vertx/pom.xml
@@ -5,7 +5,7 @@
cloudevents-examples
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0
diff --git a/formats/avro-compact/pom.xml b/formats/avro-compact/pom.xml
index 1e14a937..dc780143 100644
--- a/formats/avro-compact/pom.xml
+++ b/formats/avro-compact/pom.xml
@@ -23,7 +23,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/formats/json-jackson/pom.xml b/formats/json-jackson/pom.xml
index e084b680..5a116bcc 100644
--- a/formats/json-jackson/pom.xml
+++ b/formats/json-jackson/pom.xml
@@ -22,7 +22,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/formats/protobuf/pom.xml b/formats/protobuf/pom.xml
index 07c841f9..779629e6 100644
--- a/formats/protobuf/pom.xml
+++ b/formats/protobuf/pom.xml
@@ -23,7 +23,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/formats/xml/pom.xml b/formats/xml/pom.xml
index b48de414..5a22ca95 100644
--- a/formats/xml/pom.xml
+++ b/formats/xml/pom.xml
@@ -23,7 +23,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/http/basic/pom.xml b/http/basic/pom.xml
index e2a97394..c5c6df29 100644
--- a/http/basic/pom.xml
+++ b/http/basic/pom.xml
@@ -21,7 +21,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/http/restful-ws-integration-tests/pom.xml b/http/restful-ws-integration-tests/pom.xml
index bc777d0d..3ab75acc 100644
--- a/http/restful-ws-integration-tests/pom.xml
+++ b/http/restful-ws-integration-tests/pom.xml
@@ -22,7 +22,7 @@
cloudevents-parent
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
4.0.0
diff --git a/http/restful-ws-integration-tests/restful-ws-common/pom.xml b/http/restful-ws-integration-tests/restful-ws-common/pom.xml
index 81341442..8dd82619 100644
--- a/http/restful-ws-integration-tests/restful-ws-common/pom.xml
+++ b/http/restful-ws-integration-tests/restful-ws-common/pom.xml
@@ -22,7 +22,7 @@
cloudevents-http-restful-ws-integration-tests
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/http/restful-ws-integration-tests/restful-ws-jersey/pom.xml b/http/restful-ws-integration-tests/restful-ws-jersey/pom.xml
index dd635fa7..434eba1b 100644
--- a/http/restful-ws-integration-tests/restful-ws-jersey/pom.xml
+++ b/http/restful-ws-integration-tests/restful-ws-jersey/pom.xml
@@ -22,7 +22,7 @@
cloudevents-http-restful-ws-integration-tests
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/http/restful-ws-integration-tests/restful-ws-resteasy/pom.xml b/http/restful-ws-integration-tests/restful-ws-resteasy/pom.xml
index 31a4a4f1..5e81d9ac 100644
--- a/http/restful-ws-integration-tests/restful-ws-resteasy/pom.xml
+++ b/http/restful-ws-integration-tests/restful-ws-resteasy/pom.xml
@@ -22,7 +22,7 @@
cloudevents-http-restful-ws-integration-tests
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/http/restful-ws-integration-tests/restful-ws-spring/pom.xml b/http/restful-ws-integration-tests/restful-ws-spring/pom.xml
index ee606645..d586dfa0 100644
--- a/http/restful-ws-integration-tests/restful-ws-spring/pom.xml
+++ b/http/restful-ws-integration-tests/restful-ws-spring/pom.xml
@@ -22,7 +22,7 @@
cloudevents-http-restful-ws-integration-tests
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/http/restful-ws-jakarta-integration-tests/pom.xml b/http/restful-ws-jakarta-integration-tests/pom.xml
index 203026be..f3b8d698 100644
--- a/http/restful-ws-jakarta-integration-tests/pom.xml
+++ b/http/restful-ws-jakarta-integration-tests/pom.xml
@@ -5,7 +5,7 @@
cloudevents-parent
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
4.0.0
diff --git a/http/restful-ws-jakarta-integration-tests/restful-ws-jakarta-common/pom.xml b/http/restful-ws-jakarta-integration-tests/restful-ws-jakarta-common/pom.xml
index 81ff32ae..21977ec0 100644
--- a/http/restful-ws-jakarta-integration-tests/restful-ws-jakarta-common/pom.xml
+++ b/http/restful-ws-jakarta-integration-tests/restful-ws-jakarta-common/pom.xml
@@ -3,7 +3,7 @@
cloudevents-http-restful-ws-jakarta-integration-tests
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/http/restful-ws-jakarta-integration-tests/restful-ws-liberty/pom.xml b/http/restful-ws-jakarta-integration-tests/restful-ws-liberty/pom.xml
index 2c2032d5..75e5369c 100644
--- a/http/restful-ws-jakarta-integration-tests/restful-ws-liberty/pom.xml
+++ b/http/restful-ws-jakarta-integration-tests/restful-ws-liberty/pom.xml
@@ -5,7 +5,7 @@
cloudevents-http-restful-ws-jakarta-integration-tests
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/http/restful-ws-jakarta-integration-tests/restful-ws-resteasy/pom.xml b/http/restful-ws-jakarta-integration-tests/restful-ws-resteasy/pom.xml
index a9f6b1d4..748f59ed 100644
--- a/http/restful-ws-jakarta-integration-tests/restful-ws-resteasy/pom.xml
+++ b/http/restful-ws-jakarta-integration-tests/restful-ws-resteasy/pom.xml
@@ -3,7 +3,7 @@
cloudevents-http-restful-ws-jakarta-integration-tests
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../
4.0.0
diff --git a/http/restful-ws-jakarta/pom.xml b/http/restful-ws-jakarta/pom.xml
index 01e9ba47..5650962b 100644
--- a/http/restful-ws-jakarta/pom.xml
+++ b/http/restful-ws-jakarta/pom.xml
@@ -21,7 +21,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/http/restful-ws/pom.xml b/http/restful-ws/pom.xml
index 9e6037da..8aa6c561 100644
--- a/http/restful-ws/pom.xml
+++ b/http/restful-ws/pom.xml
@@ -21,7 +21,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/http/vertx/pom.xml b/http/vertx/pom.xml
index 652f17ed..b52da855 100644
--- a/http/vertx/pom.xml
+++ b/http/vertx/pom.xml
@@ -22,7 +22,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
../../pom.xml
diff --git a/kafka/pom.xml b/kafka/pom.xml
index c2d914f8..19297c8e 100644
--- a/kafka/pom.xml
+++ b/kafka/pom.xml
@@ -23,7 +23,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-kafka
diff --git a/pom.xml b/pom.xml
index 8e16fa24..2f6051ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
pom
CloudEvents
diff --git a/rocketmq/pom.xml b/rocketmq/pom.xml
index 311c8587..ce9b34cd 100644
--- a/rocketmq/pom.xml
+++ b/rocketmq/pom.xml
@@ -23,7 +23,7 @@
cloudevents-parent
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-rocketmq
diff --git a/spring/pom.xml b/spring/pom.xml
index 4da3298f..66e36faa 100644
--- a/spring/pom.xml
+++ b/spring/pom.xml
@@ -23,7 +23,7 @@
io.cloudevents
cloudevents-parent
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
cloudevents-spring
diff --git a/sql/pom.xml b/sql/pom.xml
index c999f073..c92f5086 100644
--- a/sql/pom.xml
+++ b/sql/pom.xml
@@ -5,7 +5,7 @@
cloudevents-parent
io.cloudevents
- 4.0.1-SNAPSHOT
+ 4.0.2-SNAPSHOT
4.0.0