From 28d5775b0b369836b562ba43666833dfcf9ab4de Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Tue, 15 Sep 2026 16:43:19 +0200 Subject: [PATCH] Remove hazelcast-atomicvalue from the hazelcast starter The camel-hazelcast-atomicvalue component was removed from Camel 4.23 (deprecated since 4.19), which broke the website build with a dangling xref from the hazelcast starter page. Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: Claus Ibsen --- .../springboot/catalog/components.properties | 1 - .../components/hazelcast-atomicvalue.json | 43 -------- .../src/main/docs/hazelcast.json | 49 --------- ...tomicnumberComponentAutoConfiguration.java | 74 ------------- ...astAtomicnumberComponentConfiguration.java | 102 ------------------ ...zelcastAtomicnumberComponentConverter.java | 55 ---------- ...ot.autoconfigure.AutoConfiguration.imports | 2 - docs/spring-boot/modules/ROOT/nav.adoc | 2 +- .../ROOT/pages/starters/hazelcast.adoc | 12 +-- .../itest/springboot/CamelHazelcastIT.java | 1 - 10 files changed, 4 insertions(+), 337 deletions(-) delete mode 100644 catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/hazelcast-atomicvalue.json delete mode 100644 components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java delete mode 100644 components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java delete mode 100644 components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConverter.java diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties index 09fffc8e95ee..e763ff20b559 100644 --- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties +++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties @@ -158,7 +158,6 @@ google-vision graphql grpc hashicorp-vault -hazelcast-atomicvalue hazelcast-instance hazelcast-list hazelcast-map diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/hazelcast-atomicvalue.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/hazelcast-atomicvalue.json deleted file mode 100644 index 3aed64376397..000000000000 --- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/hazelcast-atomicvalue.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "component": { - "kind": "component", - "name": "hazelcast-atomicvalue", - "title": "Hazelcast Atomic Number", - "description": "Increment, decrement, set, etc. Hazelcast atomic number (a grid wide number).", - "deprecated": true, - "firstVersion": "2.7.0", - "label": "cache,clustering", - "javaType": "org.apache.camel.component.hazelcast.atomicnumber.HazelcastAtomicnumberComponent", - "supportLevel": "Stable", - "groupId": "org.apache.camel.springboot", - "artifactId": "camel-hazelcast-starter", - "version": "4.23.0-SNAPSHOT", - "scheme": "hazelcast-atomicvalue", - "extendsScheme": "", - "syntax": "hazelcast-atomicvalue:cacheName", - "async": false, - "api": false, - "consumerOnly": false, - "producerOnly": true, - "lenientProperties": false, - "browsable": false, - "remote": true - }, - "componentProperties": { - "lazyStartProducer": { "index": 0, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 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 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 then creating and starting the producer may take a little time and prolong the total processing time of the processing." }, - "autowiredEnabled": { "index": 1, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." }, - "hazelcastInstance": { "index": 2, "kind": "property", "displayName": "Hazelcast Instance", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "com.hazelcast.core.HazelcastInstance", "deprecated": false, "autowired": false, "secret": false, "description": "The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance." }, - "hazelcastMode": { "index": 3, "kind": "property", "displayName": "Hazelcast Mode", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "node", "description": "The hazelcast mode reference which kind of instance should be used. If you don't specify the mode, then the node mode will be the default." } - }, - "headers": { - "CamelHazelcastOperationType": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation to perform", "constantName": "org.apache.camel.component.hazelcast.HazelcastConstants#OPERATION" } - }, - "properties": { - "cacheName": { "index": 0, "kind": "path", "displayName": "Cache Name", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The name of the cache" }, - "defaultOperation": { "index": 1, "kind": "parameter", "displayName": "Default Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.hazelcast.HazelcastOperation", "enum": [ "put", "delete", "get", "update", "query", "getAll", "clear", "putIfAbsent", "addAll", "removeAll", "retainAll", "evict", "evictAll", "valueCount", "containsKey", "containsValue", "getKeys", "removeValue", "increment", "decrement", "setValue", "destroy", "compareAndSet", "getAndAdd", "add", "offer", "peek", "poll", "remainingCapacity", "drainTo", "removeIf", "take", "publish", "readOnceHead", "readOnceTail", "capacity" ], "deprecated": false, "autowired": false, "secret": false, "description": "To specify a default operation to use, if no operation header has been provided." }, - "hazelcastConfigUri": { "index": 2, "kind": "parameter", "displayName": "Hazelcast Config Uri", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "supportFileReference": true, "description": "Hazelcast configuration file." }, - "hazelcastInstance": { "index": 3, "kind": "parameter", "displayName": "Hazelcast Instance", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.hazelcast.core.HazelcastInstance", "deprecated": false, "autowired": false, "secret": false, "description": "The hazelcast instance reference which can be used for hazelcast endpoint." }, - "hazelcastInstanceName": { "index": 4, "kind": "parameter", "displayName": "Hazelcast Instance Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance." }, - "lazyStartProducer": { "index": 5, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 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 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 then creating and starting the producer may take a little time and prolong the total processing time of the processing." } - } -} diff --git a/components-starter/camel-hazelcast-starter/src/main/docs/hazelcast.json b/components-starter/camel-hazelcast-starter/src/main/docs/hazelcast.json index 60c9d521a33e..ff384653e958 100644 --- a/components-starter/camel-hazelcast-starter/src/main/docs/hazelcast.json +++ b/components-starter/camel-hazelcast-starter/src/main/docs/hazelcast.json @@ -1,16 +1,5 @@ { "groups": [ - { - "name": "camel.component.hazelcast-atomicvalue", - "type": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration", - "sourceType": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration" - }, - { - "name": "camel.component.hazelcast-atomicvalue.customizer", - "type": "org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon$CustomizerProperties", - "sourceType": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration", - "sourceMethod": "getCustomizer()" - }, { "name": "camel.component.hazelcast-instance", "type": "org.apache.camel.component.hazelcast.instance.springboot.HazelcastInstanceComponentConfiguration", @@ -134,44 +123,6 @@ } ], "properties": [ - { - "name": "camel.component.hazelcast-atomicvalue.autowired-enabled", - "type": "java.lang.Boolean", - "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.", - "sourceType": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration", - "defaultValue": true - }, - { - "name": "camel.component.hazelcast-atomicvalue.customizer.enabled", - "type": "java.lang.Boolean", - "sourceType": "org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon$CustomizerProperties" - }, - { - "name": "camel.component.hazelcast-atomicvalue.enabled", - "type": "java.lang.Boolean", - "description": "Whether to enable auto configuration of the hazelcast-atomicvalue component. This is enabled by default.", - "sourceType": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration" - }, - { - "name": "camel.component.hazelcast-atomicvalue.hazelcast-instance", - "type": "com.hazelcast.core.HazelcastInstance", - "description": "The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance. The option is a com.hazelcast.core.HazelcastInstance type.", - "sourceType": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration" - }, - { - "name": "camel.component.hazelcast-atomicvalue.hazelcast-mode", - "type": "java.lang.String", - "description": "The hazelcast mode reference which kind of instance should be used. If you don't specify the mode, then the node mode will be the default.", - "sourceType": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration", - "defaultValue": "node" - }, - { - "name": "camel.component.hazelcast-atomicvalue.lazy-start-producer", - "type": "java.lang.Boolean", - "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 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 then creating and starting the producer may take a little time and prolong the total processing time of the processing.", - "sourceType": "org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration", - "defaultValue": false - }, { "name": "camel.component.hazelcast-instance.autowired-enabled", "type": "java.lang.Boolean", diff --git a/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java b/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java deleted file mode 100644 index 8c07f0187007..000000000000 --- a/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.hazelcast.atomicnumber.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.Component; -import org.apache.camel.component.hazelcast.atomicnumber.HazelcastAtomicnumberComponent; -import org.apache.camel.spi.ComponentCustomizer; -import org.apache.camel.spring.boot.CamelAutoConfiguration; -import org.apache.camel.spring.boot.ComponentConfigurationProperties; -import org.apache.camel.spring.boot.util.CamelPropertiesHelper; -import org.apache.camel.spring.boot.util.ConditionalOnCamelContextAndAutoConfigurationBeans; -import org.apache.camel.spring.boot.util.ConditionalOnHierarchicalProperties; -import org.apache.camel.spring.boot.util.HierarchicalPropertiesEvaluator; -import org.springframework.boot.autoconfigure.AutoConfiguration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.ApplicationContext; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Lazy; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@AutoConfiguration(after = {CamelAutoConfiguration.class, HazelcastAtomicnumberComponentConverter.class}) -@Conditional(ConditionalOnCamelContextAndAutoConfigurationBeans.class) -@EnableConfigurationProperties({ComponentConfigurationProperties.class,HazelcastAtomicnumberComponentConfiguration.class}) -@ConditionalOnHierarchicalProperties({"camel.component", "camel.component.hazelcast-atomicvalue"}) -public class HazelcastAtomicnumberComponentAutoConfiguration { - - private final ApplicationContext applicationContext; - private final HazelcastAtomicnumberComponentConfiguration configuration; - - public HazelcastAtomicnumberComponentAutoConfiguration( - org.springframework.context.ApplicationContext applicationContext, - org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConfiguration configuration) { - this.applicationContext = applicationContext; - this.configuration = configuration; - } - - @Lazy - @Bean - public ComponentCustomizer configureHazelcastAtomicnumberComponent() { - return new ComponentCustomizer() { - @Override - public void configure(String name, Component target) { - CamelPropertiesHelper.copyConfigurationProperties(target.getCamelContext(), applicationContext, - "camel.component.hazelcast-atomicvalue", configuration, target); - } - @Override - public boolean isEnabled(String name, Component target) { - return HierarchicalPropertiesEvaluator.evaluate( - applicationContext, - "camel.component.customizer", - "camel.component.hazelcast-atomicvalue.customizer") - && target instanceof HazelcastAtomicnumberComponent; - } - }; - } -} \ No newline at end of file diff --git a/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java b/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java deleted file mode 100644 index eb5c006d1afd..000000000000 --- a/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.hazelcast.atomicnumber.springboot; - -import com.hazelcast.core.HazelcastInstance; -import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Increment, decrement, set, etc. Hazelcast atomic number (a grid wide number). - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.hazelcast-atomicvalue") -public class HazelcastAtomicnumberComponentConfiguration - extends - ComponentConfigurationPropertiesCommon { - - /** - * Whether to enable auto configuration of the hazelcast-atomicvalue - * component. This is enabled by default. - */ - private Boolean enabled; - /** - * 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 then creating and starting the producer may take a little time - * and prolong the total processing time of the processing. - */ - private Boolean lazyStartProducer = false; - /** - * Whether autowiring is enabled. This is used for automatic autowiring - * options (the option must be marked as autowired) by looking up in the - * registry to find if there is a single instance of matching type, which - * then gets configured on the component. This can be used for automatic - * configuring JDBC data sources, JMS connection factories, AWS Clients, - * etc. - */ - private Boolean autowiredEnabled = true; - /** - * The hazelcast instance reference which can be used for hazelcast - * endpoint. If you don't specify the instance reference, camel use the - * default hazelcast instance from the camel-hazelcast instance. The option - * is a com.hazelcast.core.HazelcastInstance type. - */ - private HazelcastInstance hazelcastInstance; - /** - * The hazelcast mode reference which kind of instance should be used. If - * you don't specify the mode, then the node mode will be the default. - */ - private String hazelcastMode = "node"; - - public Boolean getLazyStartProducer() { - return lazyStartProducer; - } - - public void setLazyStartProducer(Boolean lazyStartProducer) { - this.lazyStartProducer = lazyStartProducer; - } - - public Boolean getAutowiredEnabled() { - return autowiredEnabled; - } - - public void setAutowiredEnabled(Boolean autowiredEnabled) { - this.autowiredEnabled = autowiredEnabled; - } - - public HazelcastInstance getHazelcastInstance() { - return hazelcastInstance; - } - - public void setHazelcastInstance(HazelcastInstance hazelcastInstance) { - this.hazelcastInstance = hazelcastInstance; - } - - public String getHazelcastMode() { - return hazelcastMode; - } - - public void setHazelcastMode(String hazelcastMode) { - this.hazelcastMode = hazelcastMode; - } -} \ No newline at end of file diff --git a/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConverter.java b/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConverter.java deleted file mode 100644 index a9eb8c50f6f4..000000000000 --- a/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConverter.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.hazelcast.atomicnumber.springboot; - -import java.util.LinkedHashSet; -import java.util.Set; -import org.apache.camel.spring.boot.util.BeanReferenceHelper; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; -import org.springframework.context.ApplicationContext; -import org.springframework.context.annotation.Configuration; -import org.springframework.core.convert.TypeDescriptor; -import org.springframework.core.convert.converter.GenericConverter; -import org.springframework.stereotype.Component; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration(proxyBeanMethods = false) -@ConfigurationPropertiesBinding -@Component -public class HazelcastAtomicnumberComponentConverter - implements - GenericConverter { - - @Autowired - private ApplicationContext applicationContext; - - public Set getConvertibleTypes() { - Set answer = new LinkedHashSet<>(); - answer.add(new ConvertiblePair(String.class, com.hazelcast.core.HazelcastInstance.class)); - return answer; - } - - public Object convert( - Object source, - TypeDescriptor sourceType, - TypeDescriptor targetType) { - return BeanReferenceHelper.resolveBeanReference(applicationContext, source, targetType, "camel.component.hazelcast-atomicvalue"); - } -} \ No newline at end of file diff --git a/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index 302e7b6f5fb1..7ea25dffb69c 100644 --- a/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -33,8 +33,6 @@ org.apache.camel.component.hazelcast.multimap.springboot.HazelcastMultimapCompon org.apache.camel.component.hazelcast.multimap.springboot.HazelcastMultimapComponentAutoConfiguration org.apache.camel.component.hazelcast.ringbuffer.springboot.HazelcastRingbufferComponentConverter org.apache.camel.component.hazelcast.ringbuffer.springboot.HazelcastRingbufferComponentAutoConfiguration -org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentConverter -org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentAutoConfiguration org.apache.camel.component.hazelcast.instance.springboot.HazelcastInstanceComponentConverter org.apache.camel.component.hazelcast.instance.springboot.HazelcastInstanceComponentAutoConfiguration org.apache.camel.component.hazelcast.pncounter.springboot.HazelcastPNCounterComponentConverter diff --git a/docs/spring-boot/modules/ROOT/nav.adoc b/docs/spring-boot/modules/ROOT/nav.adoc index 442e36d43693..d867acace9bc 100644 --- a/docs/spring-boot/modules/ROOT/nav.adoc +++ b/docs/spring-boot/modules/ROOT/nav.adoc @@ -169,7 +169,7 @@ ** xref:starters/grpc.adoc[gRPC] ** xref:starters/gson.adoc[JSON Gson] ** xref:starters/hashicorp-vault.adoc[HashiCorp Vault] -** xref:starters/hazelcast.adoc[Hazelcast Atomic Number] +** xref:starters/hazelcast.adoc[Hazelcast Instance] ** xref:starters/hivemq.adoc[HiveMQ] ** xref:starters/hl7.adoc[HL7] ** xref:starters/http.adoc[HTTP] diff --git a/docs/spring-boot/modules/ROOT/pages/starters/hazelcast.adoc b/docs/spring-boot/modules/ROOT/pages/starters/hazelcast.adoc index a14a74f852ab..1b270918d3d6 100644 --- a/docs/spring-boot/modules/ROOT/pages/starters/hazelcast.adoc +++ b/docs/spring-boot/modules/ROOT/pages/starters/hazelcast.adoc @@ -1,13 +1,12 @@ // Do not edit directly! // This file was generated by camel-spring-boot-generator-maven-plugin -= Hazelcast Atomic Number += Hazelcast Instance :artifactid: camel-hazelcast-starter -Increment, decrement, set, etc. Hazelcast atomic number (a grid wide number). +Consume join/leave events of a cache instance in a Hazelcast cluster. == What's inside -* xref:{csb-camel-components}::hazelcast-atomicvalue-component.adoc[Hazelcast Atomic Number component], URI syntax: `hazelcast-atomicvalue:cacheName` * xref:{csb-camel-components}::hazelcast-instance-component.adoc[Hazelcast Instance component], URI syntax: `hazelcast-instance:cacheName` * xref:{csb-camel-components}::hazelcast-list-component.adoc[Hazelcast List component], URI syntax: `hazelcast-list:cacheName` * xref:{csb-camel-components}::hazelcast-map-component.adoc[Hazelcast Map component], URI syntax: `hazelcast-map:cacheName` @@ -34,16 +33,11 @@ Please refer to the above links for usage and configuration details. == Spring Boot Auto-Configuration -The starter supports 68 options, which are listed below. +The starter supports 63 options, which are listed below. [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| camel.component.hazelcast-atomicvalue.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean -| camel.component.hazelcast-atomicvalue.enabled | Whether to enable auto configuration of the hazelcast-atomicvalue component. This is enabled by default. | | Boolean -| camel.component.hazelcast-atomicvalue.hazelcast-instance | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance. The option is a com.hazelcast.core.HazelcastInstance type. | | HazelcastInstance -| camel.component.hazelcast-atomicvalue.hazelcast-mode | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode, then the node mode will be the default. | node | String -| camel.component.hazelcast-atomicvalue.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 then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean | camel.component.hazelcast-instance.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean | camel.component.hazelcast-instance.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean | camel.component.hazelcast-instance.enabled | Whether to enable auto configuration of the hazelcast-instance component. This is enabled by default. | | Boolean diff --git a/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelHazelcastIT.java b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelHazelcastIT.java index 21212b1158d3..0d71dab8e5be 100644 --- a/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelHazelcastIT.java +++ b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelHazelcastIT.java @@ -23,7 +23,6 @@ public class CamelHazelcastIT extends AbstractSpringBootBaseTestSupport { @Test void componentTest() { - assertComponent("hazelcast-atomicvalue"); assertComponent("hazelcast-instance"); assertComponent("hazelcast-list"); assertComponent("hazelcast-map");