You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ap...@apache.org on 2026/02/27 12:37:49 UTC
(camel) branch main updated: CAMEL-23095 - Remove Nitrite component
This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new b40106c146b7 CAMEL-23095 - Remove Nitrite component
b40106c146b7 is described below
commit b40106c146b76b705ae13f93d64be52418618441
Author: Aurélien Pupier <ap...@ibm.com>
AuthorDate: Fri Feb 27 11:21:22 2026 +0100
CAMEL-23095 - Remove Nitrite component
it was deprecated in Camel 4.10, time to remove
Signed-off-by: Aurélien Pupier <ap...@ibm.com>
---
bom/camel-bom/pom.xml | 5 -
catalog/camel-allcomponents/pom.xml | 5 -
.../org/apache/camel/catalog/components.properties | 1 -
.../apache/camel/catalog/components/nitrite.json | 49 --
components/camel-nitrite/pom.xml | 55 --
.../nitrite/NitriteComponentConfigurer.java | 63 --
.../nitrite/NitriteEndpointConfigurer.java | 99 ---
.../nitrite/NitriteEndpointUriFactory.java | 79 ---
.../nitrite/NitriteTypeConvertersLoader.java | 68 ---
.../apache/camel/component/nitrite/nitrite.json | 49 --
.../services/org/apache/camel/TypeConverterLoader | 2 -
.../services/org/apache/camel/component.properties | 7 -
.../services/org/apache/camel/component/nitrite | 2 -
.../org/apache/camel/configurer/nitrite-component | 2 -
.../org/apache/camel/configurer/nitrite-endpoint | 2 -
.../org/apache/camel/urifactory/nitrite-endpoint | 2 -
.../src/main/docs/nitrite-component.adoc | 134 ----
.../nitrite/AbstractNitriteOperation.java | 23 -
.../camel/component/nitrite/NitriteComponent.java | 131 ----
.../camel/component/nitrite/NitriteConstants.java | 35 --
.../camel/component/nitrite/NitriteConsumer.java | 83 ---
.../camel/component/nitrite/NitriteEndpoint.java | 141 -----
.../camel/component/nitrite/NitriteProducer.java | 78 ---
.../component/nitrite/NitriteTypeConverters.java | 41 --
.../operation/AbstractPayloadAwareOperation.java | 47 --
.../nitrite/operation/CollectionOperation.java | 20 -
.../nitrite/operation/CommonOperation.java | 20 -
.../nitrite/operation/RepositoryOperation.java | 20 -
.../collection/FindCollectionOperation.java | 59 --
.../collection/RemoveCollectionOperation.java | 54 --
.../collection/UpdateCollectionOperation.java | 80 ---
.../operation/common/CreateIndexOperation.java | 41 --
.../operation/common/DropIndexOperation.java | 38 --
.../operation/common/ExportDatabaseOperation.java | 51 --
.../operation/common/GetAttributesOperation.java | 32 -
.../nitrite/operation/common/GetByIdOperation.java | 39 --
.../operation/common/ImportDatabaseOperation.java | 41 --
.../nitrite/operation/common/InsertOperation.java | 47 --
.../operation/common/ListIndicesOperation.java | 35 --
.../operation/common/RebuildIndexOperation.java | 44 --
.../nitrite/operation/common/UpdateOperation.java | 43 --
.../nitrite/operation/common/UpsertOperation.java | 43 --
.../repository/FindRepositoryOperation.java | 58 --
.../repository/RemoveRepositoryOperation.java | 54 --
.../repository/UpdateRepositoryOperation.java | 60 --
.../component/nitrite/AbstractNitriteTest.java | 55 --
.../component/nitrite/MyPersistentObject.java | 76 ---
.../component/nitrite/NitriteComponentTest.java | 69 ---
.../nitrite/NitriteConsumerCollectionTest.java | 156 -----
.../nitrite/NitriteConsumerRepositoryTest.java | 145 -----
.../nitrite/NitriteProducerCollectionTest.java | 246 --------
.../nitrite/NitriteProducerRepositoryTest.java | 221 -------
.../src/test/resources/log4j2.properties | 23 -
components/pom.xml | 1 -
.../org/apache/camel/main/components.properties | 1 -
coverage/pom.xml | 5 -
.../modules/ROOT/examples/json/nitrite.json | 1 -
docs/components/modules/ROOT/nav.adoc | 1 -
.../modules/ROOT/pages/nitrite-component.adoc | 1 -
.../ROOT/pages/camel-4x-upgrade-guide-4_19.adoc | 5 +
.../component/ComponentsBuilderFactory.java | 13 -
.../dsl/NitriteComponentBuilderFactory.java | 149 -----
.../builder/endpoint/EndpointBuilderFactory.java | 1 -
.../camel/builder/endpoint/EndpointBuilders.java | 1 -
.../builder/endpoint/StaticEndpointBuilders.java | 42 --
.../dsl/NitriteEndpointBuilderFactory.java | 674 ---------------------
.../camel-component-known-dependencies.properties | 1 -
parent/pom.xml | 6 -
68 files changed, 5 insertions(+), 3970 deletions(-)
diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 6179731d9754..2a0e65210c22 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1722,11 +1722,6 @@
<artifactId>camel-netty-http</artifactId>
<version>4.19.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-nitrite</artifactId>
- <version>4.19.0-SNAPSHOT</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-oaipmh</artifactId>
diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml
index 4ccda0d5076c..665eef0bf83b 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -1517,11 +1517,6 @@
<artifactId>camel-netty-http</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-nitrite</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-oaipmh</artifactId>
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
index 6d5c7b68ee60..eaf24f1879fa 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
@@ -268,7 +268,6 @@ nats
neo4j
netty
netty-http
-nitrite
oaipmh
olingo2
olingo4
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/nitrite.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/nitrite.json
deleted file mode 100644
index 108816cb7cab..000000000000
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/nitrite.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "nitrite",
- "title": "Nitrite",
- "description": "Access Nitrite databases.",
- "deprecated": true,
- "firstVersion": "3.0.0",
- "label": "database",
- "javaType": "org.apache.camel.component.nitrite.NitriteComponent",
- "supportLevel": "Stable",
- "groupId": "org.apache.camel",
- "artifactId": "camel-nitrite",
- "version": "4.19.0-SNAPSHOT",
- "scheme": "nitrite",
- "extendsScheme": "",
- "syntax": "nitrite:database",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": false,
- "lenientProperties": false,
- "browsable": false,
- "remote": true
- },
- "componentProperties": {
- "bridgeErrorHandler": { "index": 0, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 like [...]
- "lazyStartProducer": { "index": 1, "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 [...]
- "autowiredEnabled": { "index": 2, "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 t [...]
- },
- "headers": {
- "CamelNitriteChangeTimestamp": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Event timestamp in Epoch millis.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#CHANGE_TIMESTAMP" },
- "CamelNitriteChangeType": { "index": 1, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "org.dizitart.no2.event.ChangeType", "enum": [ "INSERT", "UPDATE", "REMOVE", "DROP", "CLOSE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Type of event.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#CHANGE_TYPE" },
- "CamelNitriteOperation": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.nitrite.AbstractNitriteOperation", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Operation to invoke on Collection or Repository. Defaults to UpsertOperation if not specified.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#OPERATION" },
- "CamelNitriteWriteResult": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "org.dizitart.no2.WriteResult", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Result of data modifying operation.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#WRITE_RESULT" }
- },
- "properties": {
- "database": { "index": 0, "kind": "path", "displayName": "Database", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Path to database file. Will be created if not exists." },
- "collection": { "index": 1, "kind": "parameter", "displayName": "Collection", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of Nitrite collection. Cannot be used in combination with repositoryClass option." },
- "repositoryClass": { "index": 2, "kind": "parameter", "displayName": "Repository Class", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.Class<java.lang.Object>", "deprecated": false, "autowired": false, "secret": false, "description": "Class of Nitrite ObjectRepository. Cannot be used in combination with collection option." },
- "repositoryName": { "index": 3, "kind": "parameter", "displayName": "Repository Name", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Optional name of ObjectRepository. Can be only used in combination with repositoryClass, otherwise have no effect" },
- "bridgeErrorHandler": { "index": 4, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 [...]
- "exceptionHandler": { "index": 5, "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, "autowired": 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 def [...]
- "exchangePattern": { "index": 6, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." },
- "lazyStartProducer": { "index": 7, "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 produc [...]
- "password": { "index": 8, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Password for Nitrite database. Required, if option username specified." },
- "username": { "index": 9, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Username for Nitrite database. Database is not secured if option not specified." }
- }
-}
diff --git a/components/camel-nitrite/pom.xml b/components/camel-nitrite/pom.xml
deleted file mode 100644
index 175573cca987..000000000000
--- a/components/camel-nitrite/pom.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel</groupId>
- <artifactId>components</artifactId>
- <version>4.19.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-nitrite</artifactId>
- <packaging>jar</packaging>
- <name>Camel :: Nitrite (deprecated)</name>
- <description>Camel Nitrite component</description>
-
- <dependencies>
-
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-support</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.dizitart</groupId>
- <artifactId>nitrite</artifactId>
- <version>${nitrite-version}</version>
- </dependency>
-
- <!-- testing -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-junit6</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteComponentConfigurer.java b/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteComponentConfigurer.java
deleted file mode 100644
index a2c2b1190cc3..000000000000
--- a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteComponentConfigurer.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.nitrite;
-
-import javax.annotation.processing.Generated;
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
-@SuppressWarnings("unchecked")
-public class NitriteComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- NitriteComponent target = (NitriteComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
- case "bridgeerrorhandler":
- case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
- case "lazystartproducer":
- case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
- default: return false;
- }
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": return boolean.class;
- case "bridgeerrorhandler":
- case "bridgeErrorHandler": return boolean.class;
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- NitriteComponent target = (NitriteComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": return target.isAutowiredEnabled();
- case "bridgeerrorhandler":
- case "bridgeErrorHandler": return target.isBridgeErrorHandler();
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteEndpointConfigurer.java b/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteEndpointConfigurer.java
deleted file mode 100644
index b3ab6bc759e8..000000000000
--- a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteEndpointConfigurer.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.nitrite;
-
-import javax.annotation.processing.Generated;
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
-@SuppressWarnings("unchecked")
-public class NitriteEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- NitriteEndpoint target = (NitriteEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "bridgeerrorhandler":
- case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
- case "collection": target.setCollection(property(camelContext, java.lang.String.class, value)); return true;
- case "exceptionhandler":
- case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
- case "exchangepattern":
- case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
- case "lazystartproducer":
- case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
- case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true;
- case "repositoryclass":
- case "repositoryClass": target.setRepositoryClass(property(camelContext, java.lang.Class.class, value)); return true;
- case "repositoryname":
- case "repositoryName": target.setRepositoryName(property(camelContext, java.lang.String.class, value)); return true;
- case "username": target.setUsername(property(camelContext, java.lang.String.class, value)); return true;
- default: return false;
- }
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "bridgeerrorhandler":
- case "bridgeErrorHandler": return boolean.class;
- case "collection": return java.lang.String.class;
- case "exceptionhandler":
- case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
- case "exchangepattern":
- case "exchangePattern": return org.apache.camel.ExchangePattern.class;
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- case "password": return java.lang.String.class;
- case "repositoryclass":
- case "repositoryClass": return java.lang.Class.class;
- case "repositoryname":
- case "repositoryName": return java.lang.String.class;
- case "username": return java.lang.String.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- NitriteEndpoint target = (NitriteEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "bridgeerrorhandler":
- case "bridgeErrorHandler": return target.isBridgeErrorHandler();
- case "collection": return target.getCollection();
- case "exceptionhandler":
- case "exceptionHandler": return target.getExceptionHandler();
- case "exchangepattern":
- case "exchangePattern": return target.getExchangePattern();
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- case "password": return target.getPassword();
- case "repositoryclass":
- case "repositoryClass": return target.getRepositoryClass();
- case "repositoryname":
- case "repositoryName": return target.getRepositoryName();
- case "username": return target.getUsername();
- default: return null;
- }
- }
-
- @Override
- public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "repositoryclass":
- case "repositoryClass": return java.lang.Object.class;
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteEndpointUriFactory.java b/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteEndpointUriFactory.java
deleted file mode 100644
index ef91b231592e..000000000000
--- a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteEndpointUriFactory.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.nitrite;
-
-import javax.annotation.processing.Generated;
-import java.net.URISyntaxException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.camel.spi.EndpointUriFactory;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.GenerateEndpointUriFactoryMojo")
-public class NitriteEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
-
- private static final String BASE = ":database";
-
- private static final Set<String> PROPERTY_NAMES;
- private static final Set<String> SECRET_PROPERTY_NAMES;
- private static final Map<String, String> MULTI_VALUE_PREFIXES;
- static {
- Set<String> props = new HashSet<>(10);
- props.add("bridgeErrorHandler");
- props.add("collection");
- props.add("database");
- props.add("exceptionHandler");
- props.add("exchangePattern");
- props.add("lazyStartProducer");
- props.add("password");
- props.add("repositoryClass");
- props.add("repositoryName");
- props.add("username");
- PROPERTY_NAMES = Collections.unmodifiableSet(props);
- SECRET_PROPERTY_NAMES = Collections.emptySet();
- MULTI_VALUE_PREFIXES = Collections.emptyMap();
- }
-
- @Override
- public boolean isEnabled(String scheme) {
- return "nitrite".equals(scheme);
- }
-
- @Override
- public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
- String syntax = scheme + BASE;
- String uri = syntax;
-
- Map<String, Object> copy = new HashMap<>(properties);
-
- uri = buildPathParameter(syntax, uri, "database", null, true, copy);
- uri = buildQueryParameters(uri, copy, encode);
- return uri;
- }
-
- @Override
- public Set<String> propertyNames() {
- return PROPERTY_NAMES;
- }
-
- @Override
- public Set<String> secretPropertyNames() {
- return SECRET_PROPERTY_NAMES;
- }
-
- @Override
- public Map<String, String> multiValuePrefixes() {
- return MULTI_VALUE_PREFIXES;
- }
-
- @Override
- public boolean isLenientProperties() {
- return false;
- }
-}
-
diff --git a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteTypeConvertersLoader.java b/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteTypeConvertersLoader.java
deleted file mode 100644
index 75602c218d71..000000000000
--- a/components/camel-nitrite/src/generated/java/org/apache/camel/component/nitrite/NitriteTypeConvertersLoader.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.nitrite;
-
-import javax.annotation.processing.Generated;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.DeferredContextBinding;
-import org.apache.camel.Exchange;
-import org.apache.camel.TypeConversionException;
-import org.apache.camel.TypeConverterLoaderException;
-import org.apache.camel.spi.TypeConverterLoader;
-import org.apache.camel.spi.TypeConverterRegistry;
-import org.apache.camel.support.SimpleTypeConverter;
-import org.apache.camel.support.TypeConverterSupport;
-import org.apache.camel.util.DoubleMap;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.TypeConverterLoaderGeneratorMojo")
-@SuppressWarnings("unchecked")
-@DeferredContextBinding
-public final class NitriteTypeConvertersLoader implements TypeConverterLoader, CamelContextAware {
-
- private CamelContext camelContext;
-
- public NitriteTypeConvertersLoader() {
- }
-
- @Override
- public void setCamelContext(CamelContext camelContext) {
- this.camelContext = camelContext;
- }
-
- @Override
- public CamelContext getCamelContext() {
- return camelContext;
- }
-
- @Override
- public void load(TypeConverterRegistry registry) throws TypeConverterLoaderException {
- registerConverters(registry);
- }
-
- private void registerConverters(TypeConverterRegistry registry) {
- addTypeConverter(registry, java.util.List.class, org.dizitart.no2.Cursor.class, false,
- (type, exchange, value) -> {
- Object answer = org.apache.camel.component.nitrite.NitriteTypeConverters.fromCursorToList((org.dizitart.no2.Cursor) value);
- if (false && answer == null) {
- answer = Void.class;
- }
- return answer;
- });
- addTypeConverter(registry, org.dizitart.no2.Document.class, java.util.Map.class, false,
- (type, exchange, value) -> {
- Object answer = org.apache.camel.component.nitrite.NitriteTypeConverters.fromMapToDocument((java.util.Map) value);
- if (false && answer == null) {
- answer = Void.class;
- }
- return answer;
- });
- }
-
- private static void addTypeConverter(TypeConverterRegistry registry, Class<?> toType, Class<?> fromType, boolean allowNull, SimpleTypeConverter.ConversionMethod method) {
- registry.addTypeConverter(toType, fromType, new SimpleTypeConverter(allowNull, method));
- }
-}
diff --git a/components/camel-nitrite/src/generated/resources/META-INF/org/apache/camel/component/nitrite/nitrite.json b/components/camel-nitrite/src/generated/resources/META-INF/org/apache/camel/component/nitrite/nitrite.json
deleted file mode 100644
index 108816cb7cab..000000000000
--- a/components/camel-nitrite/src/generated/resources/META-INF/org/apache/camel/component/nitrite/nitrite.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "nitrite",
- "title": "Nitrite",
- "description": "Access Nitrite databases.",
- "deprecated": true,
- "firstVersion": "3.0.0",
- "label": "database",
- "javaType": "org.apache.camel.component.nitrite.NitriteComponent",
- "supportLevel": "Stable",
- "groupId": "org.apache.camel",
- "artifactId": "camel-nitrite",
- "version": "4.19.0-SNAPSHOT",
- "scheme": "nitrite",
- "extendsScheme": "",
- "syntax": "nitrite:database",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": false,
- "lenientProperties": false,
- "browsable": false,
- "remote": true
- },
- "componentProperties": {
- "bridgeErrorHandler": { "index": 0, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 like [...]
- "lazyStartProducer": { "index": 1, "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 [...]
- "autowiredEnabled": { "index": 2, "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 t [...]
- },
- "headers": {
- "CamelNitriteChangeTimestamp": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Event timestamp in Epoch millis.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#CHANGE_TIMESTAMP" },
- "CamelNitriteChangeType": { "index": 1, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "org.dizitart.no2.event.ChangeType", "enum": [ "INSERT", "UPDATE", "REMOVE", "DROP", "CLOSE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Type of event.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#CHANGE_TYPE" },
- "CamelNitriteOperation": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.nitrite.AbstractNitriteOperation", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Operation to invoke on Collection or Repository. Defaults to UpsertOperation if not specified.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#OPERATION" },
- "CamelNitriteWriteResult": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "org.dizitart.no2.WriteResult", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Result of data modifying operation.", "constantName": "org.apache.camel.component.nitrite.NitriteConstants#WRITE_RESULT" }
- },
- "properties": {
- "database": { "index": 0, "kind": "path", "displayName": "Database", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Path to database file. Will be created if not exists." },
- "collection": { "index": 1, "kind": "parameter", "displayName": "Collection", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of Nitrite collection. Cannot be used in combination with repositoryClass option." },
- "repositoryClass": { "index": 2, "kind": "parameter", "displayName": "Repository Class", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.Class<java.lang.Object>", "deprecated": false, "autowired": false, "secret": false, "description": "Class of Nitrite ObjectRepository. Cannot be used in combination with collection option." },
- "repositoryName": { "index": 3, "kind": "parameter", "displayName": "Repository Name", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Optional name of ObjectRepository. Can be only used in combination with repositoryClass, otherwise have no effect" },
- "bridgeErrorHandler": { "index": 4, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 [...]
- "exceptionHandler": { "index": 5, "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, "autowired": 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 def [...]
- "exchangePattern": { "index": 6, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." },
- "lazyStartProducer": { "index": 7, "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 produc [...]
- "password": { "index": 8, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Password for Nitrite database. Required, if option username specified." },
- "username": { "index": 9, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Username for Nitrite database. Database is not secured if option not specified." }
- }
-}
diff --git a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/TypeConverterLoader b/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/TypeConverterLoader
deleted file mode 100644
index c86b422ce832..000000000000
--- a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/TypeConverterLoader
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-org.apache.camel.component.nitrite.NitriteTypeConvertersLoader
diff --git a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/component.properties
deleted file mode 100644
index 716c4d2f0385..000000000000
--- a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/component.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-components=nitrite
-groupId=org.apache.camel
-artifactId=camel-nitrite
-version=4.19.0-SNAPSHOT
-projectName=Camel :: Nitrite (deprecated)
-projectDescription=Camel Nitrite component
diff --git a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/component/nitrite b/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/component/nitrite
deleted file mode 100644
index c069c3656483..000000000000
--- a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/component/nitrite
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.nitrite.NitriteComponent
diff --git a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/configurer/nitrite-component b/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/configurer/nitrite-component
deleted file mode 100644
index 76456a95e7f8..000000000000
--- a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/configurer/nitrite-component
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.nitrite.NitriteComponentConfigurer
diff --git a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/configurer/nitrite-endpoint b/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/configurer/nitrite-endpoint
deleted file mode 100644
index 23bdf7f834ad..000000000000
--- a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/configurer/nitrite-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.nitrite.NitriteEndpointConfigurer
diff --git a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/urifactory/nitrite-endpoint b/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/urifactory/nitrite-endpoint
deleted file mode 100644
index dad510a6ac3f..000000000000
--- a/components/camel-nitrite/src/generated/resources/META-INF/services/org/apache/camel/urifactory/nitrite-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.nitrite.NitriteEndpointUriFactory
diff --git a/components/camel-nitrite/src/main/docs/nitrite-component.adoc b/components/camel-nitrite/src/main/docs/nitrite-component.adoc
deleted file mode 100644
index dc209de0ea07..000000000000
--- a/components/camel-nitrite/src/main/docs/nitrite-component.adoc
+++ /dev/null
@@ -1,134 +0,0 @@
-= Nitrite Component (deprecated)
-:doctitle: Nitrite
-:shortname: nitrite
-:artifactid: camel-nitrite
-:description: Access Nitrite databases.
-:since: 3.0
-:supportlevel: Stable-deprecated
-:deprecated: *deprecated*
-:tabs-sync-option:
-:component-header: Both producer and consumer are supported
-//Manually maintained attributes
-:camel-spring-boot-name: nitrite
-
-*Since Camel {since}*
-
-*{component-header}*
-
-[NOTE]
-====
-This component is deprecated since Camel 4.10 and will be removed in a future release.
-====
-
-Nitrite component is used to access https://github.com/dizitart/nitrite-database[Nitrite NoSQL database]
-
-Maven users will need to add the following dependency to their `pom.xml`
-for this component.
-
-[source,xml]
-----
-<dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-nitrite</artifactId>
- <version>x.x.x</version>
- <!-- use the same version as your Camel core version -->
-</dependency>
-----
-
-
-// component options: START
-include::partial$component-configure-options.adoc[]
-include::partial$component-endpoint-options.adoc[]
-include::partial$component-endpoint-headers.adoc[]
-// component options: END
-
-== Usage
-
-=== Producer operations
-The following Operations are available to specify as `NitriteConstants.OPERATION` when producing to Nitrite.
-[width="100%",cols="2m,2m,1m,5",options="header"]
-|===
-| Class | Type | Parameters | Description
-| FindCollectionOperation | collection | Filter(optional), FindOptions(optional) | Find Documents in collection by Filter. If not specified, returns all documents
-| RemoveCollectionOperation | collection | Filter(required), RemoveOptions(optional) | Remove documents matching Filter
-| UpdateCollectionOperation | collection | Filter(required), UpdateOptions(optional), Document(optional) | Update documents matching Filter. If Document not specified, the message body is used
-| CreateIndexOperation | common | field:String(required), IndexOptions(required) | Create index with IndexOptions on field
-| DropIndexOperation | common | field:String(required) | Drop index on field
-| ExportDatabaseOperation | common | ExportOptions(optional) | Export full database to JSON and stores result in body - see Nitrite docs for details about format
-| GetAttributesOperation | common | | Get attributes of a collection
-| GetByIdOperation | common | NitriteId | Get Document by _id
-| ImportDatabaseOperation | common | | Import the full database from JSON in body
-| InsertOperation | common | payload(optional) | Insert document to collection or object to ObjectRepository. If parameter is not specified, inserts message body
-| ListIndicesOperation | common | | List indexes in collection and stores `List<Index>` in message body
-| RebuildIndexOperation | common | field (required), async (optional) | Rebuild existing index on field
-| UpdateOperation | common | payload(optional) | Update document in collection or object in ObjectRepository. If parameter is not specified, updates document from message body
-| UpsertOperation | common | payload(optional) | Upsert (Insert or Update) document in collection or object in ObjectRepository. If parameter is not specified, updates document from message body
-| FindRepositoryOperation | repository | ObjectFilter(optional), FindOptions(optional) | Find objects in ObjectRepository by ObjectFilter. If not specified, returns all objects in repository
-| RemoveRepositoryOperation | repository | ObjectFilter(required), RemoveOptions(optional) | Remove objects in ObjectRepository matched by ObjectFilter
-| UpdateRepositoryOperation | repository | ObjectFilter(required), UpdateOptions(optional), payload(optional) | Update objects matching ObjectFilter. If payload not specified, the message body is used
-|===
-
-== Examples
-
-=== Consume changes in a collection.
-
-[source,java]
-----
-from("nitrite:/path/to/database.db?collection=myCollection")
- .to("log:change");
-----
-
-=== Consume changes in object repository.
-
-[source,java]
-----
-from("nitrite:/path/to/database.db?repositoryClass=my.project.MyPersistentObject")
- .to("log:change");
-----
-
-[source,java]
-----
-package my.project;
-
-@Indices({
- @Index(value = "key1", type = IndexType.NonUnique)
-})
-public class MyPersistentObject {
- @Id
- private long id;
- private String key1;
- // Getters, setters
-}
-----
-
-=== Insert or update document
-
-[source,java]
-----
-from("direct:upsert")
- .setBody(constant(Document.createDocument("key1", "val1")))
- .to("nitrite:/path/to/database.db?collection=myCollection");
-----
-
-=== Get Document by id
-
-[source,java]
-----
-from("direct:getByID")
- .setHeader(NitriteConstants.OPERATION, () -> new GetByIdOperation(NitriteId.createId(123L)))
- .to("nitrite:/path/to/database.db?collection=myCollection")
- .to("log:result")
-----
-
-=== Find Document in collection
-
-[source,java]
-----
-from("direct:getByID")
- .setHeader(NitriteConstants.OPERATION, () -> new FindCollectionOperation(Filters.eq("myKey", "withValue")))
- .to("nitrite:/path/to/database.db?collection=myCollection")
- .to("log:result");
-----
-
-
-include::spring-boot:partial$starter.adoc[]
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/AbstractNitriteOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/AbstractNitriteOperation.java
deleted file mode 100644
index dbe7c1ccfa4b..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/AbstractNitriteOperation.java
+++ /dev/null
@@ -1,23 +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.nitrite;
-
-import org.apache.camel.Exchange;
-
-public abstract class AbstractNitriteOperation {
- protected abstract void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception;
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteComponent.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteComponent.java
deleted file mode 100644
index a94d6476ab53..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteComponent.java
+++ /dev/null
@@ -1,131 +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.nitrite;
-
-import java.util.Map;
-import java.util.Objects;
-import java.util.concurrent.ConcurrentHashMap;
-
-import org.apache.camel.Endpoint;
-import org.apache.camel.spi.annotations.Component;
-import org.apache.camel.support.DefaultComponent;
-import org.apache.camel.util.FileUtil;
-import org.dizitart.no2.Nitrite;
-import org.dizitart.no2.NitriteBuilder;
-import org.dizitart.no2.PersistentCollection;
-
-/**
- * Represents the component that manages {@link NitriteEndpoint}.
- */
-@Component("nitrite")
-public class NitriteComponent extends DefaultComponent {
-
- private Map<String, Nitrite> databaseCache = new ConcurrentHashMap<>();
- private Map<CollectionCacheKey, PersistentCollection> collectionCache = new ConcurrentHashMap<>();
-
- protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
- NitriteEndpoint endpoint = new NitriteEndpoint(uri, this);
- setProperties(endpoint, parameters);
- if (endpoint.getCollection() != null && endpoint.getRepositoryClass() != null) {
- throw new IllegalArgumentException("Options collection and repositoryClass cannot be used together");
- }
- if (endpoint.getCollection() == null && endpoint.getRepositoryClass() == null) {
- throw new IllegalArgumentException("Either collection or repositoryClass option is required");
- }
-
- String normalizedPath = FileUtil.compactPath(remaining);
- endpoint.setDatabase(normalizedPath);
- Nitrite nitriteDatabase = databaseCache.computeIfAbsent(normalizedPath, path -> {
- NitriteBuilder builder = Nitrite.builder().compressed().filePath(path);
- if (endpoint.getUsername() == null && endpoint.getPassword() == null) {
- return builder.openOrCreate();
- } else {
- return builder.openOrCreate(endpoint.getUsername(), endpoint.getPassword());
- }
- });
- endpoint.setNitriteDatabase(nitriteDatabase);
-
- PersistentCollection nitriteCollection = collectionCache.computeIfAbsent(new CollectionCacheKey(endpoint), key -> {
- if (key.collection != null) {
- return key.database.getCollection(key.collection);
- } else {
- if (key.repositoryName != null) {
- return key.database.getRepository(key.repositoryName, key.repositoryClass);
- } else if (key.repositoryClass != null) {
- return key.database.getRepository(key.repositoryClass);
- } else {
- throw new IllegalArgumentException("Required one of option: collection or repositoryClass");
- }
- }
- });
- endpoint.setNitriteCollection(nitriteCollection);
-
- return endpoint;
- }
-
- protected void closeDb(String path) {
- String normalized = FileUtil.compactPath(path);
- Nitrite db = databaseCache.get(normalized);
- if (db != null && !db.isClosed()) {
- db.close();
- }
- }
-
- @Override
- protected void doStop() throws Exception {
- super.doStop();
- for (String path : databaseCache.keySet()) {
- closeDb(path);
- }
- databaseCache.clear();
- collectionCache.clear();
- }
-
- private static class CollectionCacheKey {
- Nitrite database;
- String collection;
- String repositoryName;
- Class<?> repositoryClass;
-
- CollectionCacheKey(NitriteEndpoint endpoint) {
- database = endpoint.getNitriteDatabase();
- collection = endpoint.getCollection();
- repositoryName = endpoint.getRepositoryName();
- repositoryClass = endpoint.getRepositoryClass();
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CollectionCacheKey that = (CollectionCacheKey) o;
- return database.equals(that.database)
- && Objects.equals(collection, that.collection)
- && Objects.equals(repositoryName, that.repositoryName)
- && Objects.equals(repositoryClass, that.repositoryClass);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(database, collection, repositoryName, repositoryClass);
- }
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteConstants.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteConstants.java
deleted file mode 100644
index 7a6916f755e4..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteConstants.java
+++ /dev/null
@@ -1,35 +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.nitrite;
-
-import org.apache.camel.spi.Metadata;
-
-public final class NitriteConstants {
- @Metadata(label = "consumer", description = "Event timestamp in Epoch millis.", javaType = "long")
- public static final String CHANGE_TIMESTAMP = "CamelNitriteChangeTimestamp";
- @Metadata(label = "consumer", description = "Type of event.", javaType = "org.dizitart.no2.event.ChangeType")
- public static final String CHANGE_TYPE = "CamelNitriteChangeType";
- @Metadata(label = "producer",
- description = "Operation to invoke on Collection or Repository. Defaults to `UpsertOperation` if not specified.",
- javaType = "org.apache.camel.component.nitrite.AbstractNitriteOperation")
- public static final String OPERATION = "CamelNitriteOperation";
- @Metadata(description = "Result of data modifying operation.", javaType = "org.dizitart.no2.WriteResult")
- public static final String WRITE_RESULT = "CamelNitriteWriteResult";
-
- private NitriteConstants() {
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteConsumer.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteConsumer.java
deleted file mode 100644
index 874246064e4f..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteConsumer.java
+++ /dev/null
@@ -1,83 +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.nitrite;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.Message;
-import org.apache.camel.Processor;
-import org.apache.camel.support.DefaultConsumer;
-import org.dizitart.no2.event.ChangeInfo;
-import org.dizitart.no2.event.ChangeListener;
-import org.dizitart.no2.event.ChangedItem;
-
-/**
- * The Nitrite consumer.
- */
-public class NitriteConsumer extends DefaultConsumer {
- private final NitriteEndpoint endpoint;
- private NitriteChangeListener changeListener;
-
- public NitriteConsumer(NitriteEndpoint endpoint, Processor processor) {
- super(endpoint, processor);
- this.endpoint = endpoint;
- }
-
- @Override
- protected void doInit() throws Exception {
- super.doInit();
- changeListener = new NitriteChangeListener();
- }
-
- @Override
- protected void doStart() throws Exception {
- super.doStart();
- endpoint.getNitriteCollection().register(changeListener);
- }
-
- @Override
- protected void doStop() throws Exception {
- if (changeListener != null) {
- endpoint.getNitriteCollection().deregister(changeListener);
- }
- super.doStop();
- }
-
- private class NitriteChangeListener implements ChangeListener {
-
- @Override
- public void onChange(ChangeInfo changeInfo) {
- for (ChangedItem changedItem : changeInfo.getChangedItems()) {
- Exchange exchange = createExchange(false);
- Message message = exchange.getMessage();
- message.setHeader(NitriteConstants.CHANGE_TIMESTAMP, changedItem.getChangeTimestamp());
- message.setHeader(NitriteConstants.CHANGE_TYPE, changedItem.getChangeType());
- message.setBody(changedItem.getDocument());
-
- try {
- getProcessor().process(exchange);
- } catch (Exception e) {
- exchange.setException(e);
- } finally {
- if (exchange.getException() != null) {
- getExceptionHandler().handleException("Error processing exchange", exchange, exchange.getException());
- }
- releaseExchange(exchange, false);
- }
- }
- }
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteEndpoint.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteEndpoint.java
deleted file mode 100644
index 9c21fe26426f..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteEndpoint.java
+++ /dev/null
@@ -1,141 +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.nitrite;
-
-import org.apache.camel.Category;
-import org.apache.camel.Consumer;
-import org.apache.camel.Processor;
-import org.apache.camel.Producer;
-import org.apache.camel.spi.Metadata;
-import org.apache.camel.spi.UriEndpoint;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriPath;
-import org.apache.camel.support.DefaultEndpoint;
-import org.dizitart.no2.Nitrite;
-import org.dizitart.no2.PersistentCollection;
-
-/**
- * Access Nitrite databases.
- */
-@UriEndpoint(firstVersion = "3.0.0", scheme = "nitrite", title = "Nitrite", syntax = "nitrite:database",
- category = { Category.DATABASE }, headersClass = NitriteConstants.class)
-public class NitriteEndpoint extends DefaultEndpoint {
- @UriPath(label = "common", description = "Path to database file. Will be created if not exists.")
- @Metadata(required = true)
- private String database;
- @UriParam(label = "common", description = "Name of Nitrite collection. "
- + "Cannot be used in combination with repositoryClass option.")
- private String collection;
- @UriParam(label = "common", description = "Class of Nitrite ObjectRepository. "
- + "Cannot be used in combination with collection option.")
- private Class<?> repositoryClass;
- @UriParam(label = "common", description = "Optional name of ObjectRepository. "
- + "Can be only used in combination with repositoryClass, otherwise have no effect")
- private String repositoryName;
- @UriParam(label = "security", description = "Username for Nitrite database. "
- + "Database is not secured if option not specified.")
- private String username;
- @UriParam(label = "security", description = "Password for Nitrite database. Required, if option username specified.")
- private String password;
-
- private Nitrite nitriteDatabase;
- private PersistentCollection nitriteCollection;
-
- public NitriteEndpoint() {
- }
-
- public NitriteEndpoint(String uri, NitriteComponent component) {
- super(uri, component);
- }
-
- public void setNitriteCollection(PersistentCollection collection) {
- this.nitriteCollection = collection;
- }
-
- public void setNitriteDatabase(Nitrite nitriteDatabase) {
- this.nitriteDatabase = nitriteDatabase;
- }
-
- public Producer createProducer() throws Exception {
- return new NitriteProducer(this);
- }
-
- public Consumer createConsumer(Processor processor) throws Exception {
- return new NitriteConsumer(this, processor);
- }
-
- @Override
- public NitriteComponent getComponent() {
- return (NitriteComponent) super.getComponent();
- }
-
- public PersistentCollection getNitriteCollection() {
- return nitriteCollection;
- }
-
- public Nitrite getNitriteDatabase() {
- return nitriteDatabase;
- }
-
- public void setDatabase(String database) {
- this.database = database;
- }
-
- public String getDatabase() {
- return database;
- }
-
- public String getCollection() {
- return collection;
- }
-
- public void setCollection(String collection) {
- this.collection = collection;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public Class<?> getRepositoryClass() {
- return repositoryClass;
- }
-
- public void setRepositoryClass(Class<?> repositoryClass) {
- this.repositoryClass = repositoryClass;
- }
-
- public String getRepositoryName() {
- return repositoryName;
- }
-
- public void setRepositoryName(String repositoryName) {
- this.repositoryName = repositoryName;
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteProducer.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteProducer.java
deleted file mode 100644
index e39be9b70551..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteProducer.java
+++ /dev/null
@@ -1,78 +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.nitrite;
-
-import java.util.function.Consumer;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.operation.CollectionOperation;
-import org.apache.camel.component.nitrite.operation.RepositoryOperation;
-import org.apache.camel.component.nitrite.operation.common.UpsertOperation;
-import org.apache.camel.support.DefaultProducer;
-import org.dizitart.no2.NitriteCollection;
-import org.dizitart.no2.objects.ObjectRepository;
-
-/**
- * The Nitrite producer.
- */
-public class NitriteProducer extends DefaultProducer {
- private NitriteEndpoint endpoint;
- private Consumer<AbstractNitriteOperation> operationValidator = noop -> {
- };
-
- public NitriteProducer(NitriteEndpoint endpoint) {
- super(endpoint);
- this.endpoint = endpoint;
-
- if (endpoint.getNitriteCollection() instanceof ObjectRepository) {
- operationValidator = operation -> {
- if (!(operation instanceof RepositoryOperation)) {
- throw new IllegalArgumentException(
- String.format(
- "Attempted to run Collection-only operation %s on Repository %s",
- operation.getClass(),
- endpoint.getNitriteCollection()));
- }
- };
- }
-
- if (endpoint.getNitriteCollection() instanceof NitriteCollection) {
- operationValidator = operation -> {
- if (!(operation instanceof CollectionOperation)) {
- throw new IllegalArgumentException(
- String.format(
- "Attempted to run Repository-only operation %s on Collection %s",
- operation.getClass(),
- endpoint.getNitriteCollection()));
- }
- };
- }
- }
-
- public void process(Exchange exchange) throws Exception {
- AbstractNitriteOperation operation
- = exchange.getMessage().getHeader(NitriteConstants.OPERATION, AbstractNitriteOperation.class);
- if (operation == null) {
- operation = new UpsertOperation();
- }
-
- operationValidator.accept(operation);
-
- operation.execute(exchange, endpoint);
- }
-
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteTypeConverters.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteTypeConverters.java
deleted file mode 100644
index ca1e9f34938d..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteTypeConverters.java
+++ /dev/null
@@ -1,41 +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.nitrite;
-
-import java.util.List;
-import java.util.Map;
-
-import org.apache.camel.Converter;
-import org.dizitart.no2.Cursor;
-import org.dizitart.no2.Document;
-
-@Converter(generateLoader = true)
-public final class NitriteTypeConverters {
- private NitriteTypeConverters() {
- }
-
- @Converter
- public static Document fromMapToDocument(Map<String, Object> map) {
- return new Document(map);
- }
-
- @Converter
- public static List fromCursorToList(Cursor cursor) {
- return cursor.toList();
- }
-
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/AbstractPayloadAwareOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/AbstractPayloadAwareOperation.java
deleted file mode 100644
index cae3b86eda9c..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/AbstractPayloadAwareOperation.java
+++ /dev/null
@@ -1,47 +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.nitrite.operation;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.Expression;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.support.builder.ExpressionBuilder;
-import org.dizitart.no2.Document;
-
-public abstract class AbstractPayloadAwareOperation extends AbstractNitriteOperation {
- private Expression expression;
-
- protected AbstractPayloadAwareOperation(Object body) {
- this.expression = ExpressionBuilder.constantExpression(body);
- }
-
- protected AbstractPayloadAwareOperation(Expression expression) {
- this.expression = expression;
- }
-
- protected AbstractPayloadAwareOperation() {
- this.expression = ExpressionBuilder.bodyExpression();
- }
-
- protected Object getPayload(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- Class<?> targetClass = endpoint.getRepositoryClass() != null ? endpoint.getRepositoryClass() : Document.class;
- Object payload = expression.evaluate(exchange, Object.class);
-
- return endpoint.getCamelContext().getTypeConverter().mandatoryConvertTo(targetClass, exchange, payload);
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/CollectionOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/CollectionOperation.java
deleted file mode 100644
index bc3d8e695d4e..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/CollectionOperation.java
+++ /dev/null
@@ -1,20 +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.nitrite.operation;
-
-public interface CollectionOperation {
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/CommonOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/CommonOperation.java
deleted file mode 100644
index 69a9f350f724..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/CommonOperation.java
+++ /dev/null
@@ -1,20 +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.nitrite.operation;
-
-public interface CommonOperation extends RepositoryOperation, CollectionOperation {
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/RepositoryOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/RepositoryOperation.java
deleted file mode 100644
index 89533d923afb..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/RepositoryOperation.java
+++ /dev/null
@@ -1,20 +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.nitrite.operation;
-
-public interface RepositoryOperation {
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/FindCollectionOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/FindCollectionOperation.java
deleted file mode 100644
index e6fd10c69ffc..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/FindCollectionOperation.java
+++ /dev/null
@@ -1,59 +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.nitrite.operation.collection;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CollectionOperation;
-import org.dizitart.no2.Filter;
-import org.dizitart.no2.FindOptions;
-import org.dizitart.no2.NitriteCollection;
-
-/**
- * Find Documents in collection by Filter. If not specified, returns all documents
- */
-public class FindCollectionOperation extends AbstractNitriteOperation implements CollectionOperation {
-
- private Filter filter;
- private FindOptions findOptions;
-
- public FindCollectionOperation() {
- }
-
- public FindCollectionOperation(Filter filter) {
- this.filter = filter;
- }
-
- public FindCollectionOperation(Filter filter, FindOptions findOptions) {
- this.filter = filter;
- this.findOptions = findOptions;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- NitriteCollection collection = (NitriteCollection) endpoint.getNitriteCollection();
- if (filter != null && findOptions != null) {
- exchange.getMessage().setBody(collection.find(filter, findOptions));
- } else if (filter != null) {
- exchange.getMessage().setBody(collection.find(filter));
- } else {
- exchange.getMessage().setBody(collection.find());
- }
-
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/RemoveCollectionOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/RemoveCollectionOperation.java
deleted file mode 100644
index e6ad36a12804..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/RemoveCollectionOperation.java
+++ /dev/null
@@ -1,54 +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.nitrite.operation.collection;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteConstants;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CollectionOperation;
-import org.dizitart.no2.Filter;
-import org.dizitart.no2.NitriteCollection;
-import org.dizitart.no2.RemoveOptions;
-
-/**
- * Remove documents matching Filter
- */
-public class RemoveCollectionOperation extends AbstractNitriteOperation implements CollectionOperation {
-
- private Filter filter;
- private RemoveOptions removeOptions;
-
- public RemoveCollectionOperation(Filter filter) {
- this.filter = filter;
- }
-
- public RemoveCollectionOperation(Filter filter, RemoveOptions removeOptions) {
- this.filter = filter;
- this.removeOptions = removeOptions;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- NitriteCollection collection = (NitriteCollection) endpoint.getNitriteCollection();
- if (filter != null && removeOptions != null) {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, collection.remove(filter, removeOptions));
- } else {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, collection.remove(filter));
- }
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/UpdateCollectionOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/UpdateCollectionOperation.java
deleted file mode 100644
index 5d0fc8b1227e..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/collection/UpdateCollectionOperation.java
+++ /dev/null
@@ -1,80 +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.nitrite.operation.collection;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.Expression;
-import org.apache.camel.component.nitrite.NitriteConstants;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.AbstractPayloadAwareOperation;
-import org.apache.camel.component.nitrite.operation.CollectionOperation;
-import org.dizitart.no2.Document;
-import org.dizitart.no2.Filter;
-import org.dizitart.no2.NitriteCollection;
-import org.dizitart.no2.UpdateOptions;
-
-/**
- * Update documents matching Filter. If Document not specified, the message body is used
- */
-public class UpdateCollectionOperation extends AbstractPayloadAwareOperation implements CollectionOperation {
-
- private Filter filter;
- private UpdateOptions updateOptions;
-
- public UpdateCollectionOperation(Filter filter) {
- this.filter = filter;
- }
-
- public UpdateCollectionOperation(Filter filter, UpdateOptions updateOptions) {
- this.filter = filter;
- this.updateOptions = updateOptions;
- }
-
- public UpdateCollectionOperation(Filter filter, Document document) {
- super(document);
- this.filter = filter;
- }
-
- public UpdateCollectionOperation(Filter filter, UpdateOptions updateOptions, Document document) {
- super(document);
- this.filter = filter;
- this.updateOptions = updateOptions;
- }
-
- public UpdateCollectionOperation(Filter filter, Expression documentExpression) {
- super(documentExpression);
- this.filter = filter;
- }
-
- public UpdateCollectionOperation(Filter filter, UpdateOptions updateOptions, Expression documentExpression) {
- super(documentExpression);
- this.filter = filter;
- this.updateOptions = updateOptions;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- NitriteCollection collection = (NitriteCollection) endpoint.getNitriteCollection();
- Document payload = (Document) getPayload(exchange, endpoint);
- if (filter != null && updateOptions != null) {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, collection.update(filter, payload, updateOptions));
- } else {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, collection.update(filter, payload));
- }
- }
-
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/CreateIndexOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/CreateIndexOperation.java
deleted file mode 100644
index 20fcdbdc1628..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/CreateIndexOperation.java
+++ /dev/null
@@ -1,41 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-import org.dizitart.no2.IndexOptions;
-
-/**
- * Create index with IndexOptions on field
- */
-public class CreateIndexOperation extends AbstractNitriteOperation implements CommonOperation {
- private String field;
- private IndexOptions indexOptions;
-
- public CreateIndexOperation(String field, IndexOptions indexOptions) {
- this.field = field;
- this.indexOptions = indexOptions;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- endpoint.getNitriteCollection().createIndex(field, indexOptions);
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/DropIndexOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/DropIndexOperation.java
deleted file mode 100644
index 8610e4a42245..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/DropIndexOperation.java
+++ /dev/null
@@ -1,38 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-
-/**
- * Drop index on field
- */
-public class DropIndexOperation extends AbstractNitriteOperation implements CommonOperation {
- private String field;
-
- public DropIndexOperation(String field) {
- this.field = field;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- endpoint.getNitriteCollection().dropIndex(field);
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ExportDatabaseOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ExportDatabaseOperation.java
deleted file mode 100644
index 22ec5dcb7eeb..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ExportDatabaseOperation.java
+++ /dev/null
@@ -1,51 +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.nitrite.operation.common;
-
-import java.io.ByteArrayOutputStream;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-import org.dizitart.no2.tool.ExportOptions;
-import org.dizitart.no2.tool.Exporter;
-
-/**
- * Export full database to JSON and stores result in body - see Nitrite docs for details about format
- */
-public class ExportDatabaseOperation extends AbstractNitriteOperation implements CommonOperation {
- private ExportOptions options;
-
- public ExportDatabaseOperation() {
- }
-
- public ExportDatabaseOperation(ExportOptions options) {
- this.options = options;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- ByteArrayOutputStream stream = new ByteArrayOutputStream();
- Exporter exporter = Exporter.of(endpoint.getNitriteDatabase());
- if (options != null) {
- exporter.withOptions(options);
- }
- exporter.exportTo(stream);
- exchange.getMessage().setBody(stream.toByteArray());
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/GetAttributesOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/GetAttributesOperation.java
deleted file mode 100644
index 3b2ca6c943d6..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/GetAttributesOperation.java
+++ /dev/null
@@ -1,32 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-
-/**
- * Get attributes of collection
- */
-public class GetAttributesOperation extends AbstractNitriteOperation implements CommonOperation {
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- exchange.getMessage().setBody(endpoint.getNitriteCollection().getAttributes());
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/GetByIdOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/GetByIdOperation.java
deleted file mode 100644
index ad9c47549a80..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/GetByIdOperation.java
+++ /dev/null
@@ -1,39 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-import org.dizitart.no2.NitriteId;
-
-/**
- * Get Document by _id
- */
-public class GetByIdOperation extends AbstractNitriteOperation implements CommonOperation {
- private NitriteId id;
-
- public GetByIdOperation(NitriteId id) {
- this.id = id;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- exchange.getMessage().setBody(endpoint.getNitriteCollection().getById(id));
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ImportDatabaseOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ImportDatabaseOperation.java
deleted file mode 100644
index f87274df0475..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ImportDatabaseOperation.java
+++ /dev/null
@@ -1,41 +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.nitrite.operation.common;
-
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-import org.dizitart.no2.tool.Importer;
-
-/**
- * Import full database from JSON in body
- */
-public class ImportDatabaseOperation extends AbstractNitriteOperation implements CommonOperation {
- public ImportDatabaseOperation() {
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- InputStream stream = new ByteArrayInputStream(exchange.getMessage().getBody(byte[].class));
- Importer.of(endpoint.getNitriteDatabase())
- .importFrom(stream);
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/InsertOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/InsertOperation.java
deleted file mode 100644
index 96aedcb1b4c0..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/InsertOperation.java
+++ /dev/null
@@ -1,47 +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.nitrite.operation.common;
-
-import java.lang.reflect.Array;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.NitriteConstants;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.AbstractPayloadAwareOperation;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-
-/**
- * Insert document to collection or object to ObjectRepository. If parameter not specified, inserts message body
- */
-public class InsertOperation extends AbstractPayloadAwareOperation implements CommonOperation {
- public InsertOperation(Object payload) {
- super(payload);
- }
-
- public InsertOperation() {
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- Object payload = getPayload(exchange, endpoint);
- Object[] payloadArray = (Object[]) Array.newInstance(payload.getClass(), 1);
- payloadArray[0] = payload;
- exchange.getMessage().setHeader(
- NitriteConstants.WRITE_RESULT,
- endpoint.getNitriteCollection().insert(payloadArray));
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ListIndicesOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ListIndicesOperation.java
deleted file mode 100644
index e50a075f699a..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/ListIndicesOperation.java
+++ /dev/null
@@ -1,35 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-
-/**
- * List indexes in collection and stores {@code Collection<org.dizitart.no2.Index>} in message body
- */
-public class ListIndicesOperation extends AbstractNitriteOperation implements CommonOperation {
- public ListIndicesOperation() {
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- exchange.getMessage().setBody(endpoint.getNitriteCollection().listIndices());
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/RebuildIndexOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/RebuildIndexOperation.java
deleted file mode 100644
index 393540ec80ce..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/RebuildIndexOperation.java
+++ /dev/null
@@ -1,44 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-
-/**
- * Rebuild existing index on field
- */
-public class RebuildIndexOperation extends AbstractNitriteOperation implements CommonOperation {
- private String field;
- private boolean async;
-
- public RebuildIndexOperation(String field) {
- this.field = field;
- }
-
- public RebuildIndexOperation(String field, boolean async) {
- this.field = field;
- this.async = async;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- endpoint.getNitriteCollection().rebuildIndex(field, async);
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/UpdateOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/UpdateOperation.java
deleted file mode 100644
index 1ee8d500988d..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/UpdateOperation.java
+++ /dev/null
@@ -1,43 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.NitriteConstants;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.AbstractPayloadAwareOperation;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-
-/**
- * Update document in collection or object in ObjectRepository. If parameter not specified, updates document from
- * message body
- */
-public class UpdateOperation extends AbstractPayloadAwareOperation implements CommonOperation {
- public UpdateOperation(Object payload) {
- super(payload);
- }
-
- public UpdateOperation() {
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- exchange.getMessage().setHeader(
- NitriteConstants.WRITE_RESULT,
- endpoint.getNitriteCollection().update(getPayload(exchange, endpoint), false));
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/UpsertOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/UpsertOperation.java
deleted file mode 100644
index 519cacee3e89..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/common/UpsertOperation.java
+++ /dev/null
@@ -1,43 +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.nitrite.operation.common;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.NitriteConstants;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.AbstractPayloadAwareOperation;
-import org.apache.camel.component.nitrite.operation.CommonOperation;
-
-/**
- * Upsert (Insert or Update) document in collection or object in ObjectRepository. If parameter not specified, updates
- * document from message body
- */
-public class UpsertOperation extends AbstractPayloadAwareOperation implements CommonOperation {
- public UpsertOperation(Object payload) {
- super(payload);
- }
-
- public UpsertOperation() {
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- exchange.getMessage().setHeader(
- NitriteConstants.WRITE_RESULT,
- endpoint.getNitriteCollection().update(getPayload(exchange, endpoint), true));
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/FindRepositoryOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/FindRepositoryOperation.java
deleted file mode 100644
index 1d2c0cbd00e2..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/FindRepositoryOperation.java
+++ /dev/null
@@ -1,58 +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.nitrite.operation.repository;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.RepositoryOperation;
-import org.dizitart.no2.FindOptions;
-import org.dizitart.no2.objects.ObjectFilter;
-import org.dizitart.no2.objects.ObjectRepository;
-
-/**
- * Find objects in ObjectRepository by ObjectFilter. If not specified, returns all objects in repository
- */
-public class FindRepositoryOperation extends AbstractNitriteOperation implements RepositoryOperation {
-
- private ObjectFilter objectFilter;
- private FindOptions findOptions;
-
- public FindRepositoryOperation() {
- }
-
- public FindRepositoryOperation(ObjectFilter objectFilter) {
- this.objectFilter = objectFilter;
- }
-
- public FindRepositoryOperation(ObjectFilter objectFilter, FindOptions findOptions) {
- this.objectFilter = objectFilter;
- this.findOptions = findOptions;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- ObjectRepository repository = (ObjectRepository) endpoint.getNitriteCollection();
- if (objectFilter != null && findOptions != null) {
- exchange.getMessage().setBody(repository.find(objectFilter, findOptions));
- } else if (objectFilter != null) {
- exchange.getMessage().setBody(repository.find(objectFilter));
- } else {
- exchange.getMessage().setBody(repository.find());
- }
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/RemoveRepositoryOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/RemoveRepositoryOperation.java
deleted file mode 100644
index 67c1ee3ab9eb..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/RemoveRepositoryOperation.java
+++ /dev/null
@@ -1,54 +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.nitrite.operation.repository;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.AbstractNitriteOperation;
-import org.apache.camel.component.nitrite.NitriteConstants;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.RepositoryOperation;
-import org.dizitart.no2.RemoveOptions;
-import org.dizitart.no2.objects.ObjectFilter;
-import org.dizitart.no2.objects.ObjectRepository;
-
-/**
- * Remove objects in ObjectRepository matched by ObjectFilter
- */
-public class RemoveRepositoryOperation extends AbstractNitriteOperation implements RepositoryOperation {
-
- private ObjectFilter filter;
- private RemoveOptions removeOptions;
-
- public RemoveRepositoryOperation(ObjectFilter filter) {
- this.filter = filter;
- }
-
- public RemoveRepositoryOperation(ObjectFilter filter, RemoveOptions removeOptions) {
- this.filter = filter;
- this.removeOptions = removeOptions;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- ObjectRepository repository = (ObjectRepository) endpoint.getNitriteCollection();
- if (filter != null && removeOptions != null) {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, repository.remove(filter, removeOptions));
- } else {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, repository.remove(filter));
- }
- }
-}
diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/UpdateRepositoryOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/UpdateRepositoryOperation.java
deleted file mode 100644
index 9e9ab9004545..000000000000
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/repository/UpdateRepositoryOperation.java
+++ /dev/null
@@ -1,60 +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.nitrite.operation.repository;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.Expression;
-import org.apache.camel.component.nitrite.NitriteConstants;
-import org.apache.camel.component.nitrite.NitriteEndpoint;
-import org.apache.camel.component.nitrite.operation.AbstractPayloadAwareOperation;
-import org.apache.camel.component.nitrite.operation.RepositoryOperation;
-import org.dizitart.no2.objects.ObjectFilter;
-import org.dizitart.no2.objects.ObjectRepository;
-
-/**
- * Update objects matching ObjectFilter. If payload not specified, the message body is used
- */
-public class UpdateRepositoryOperation extends AbstractPayloadAwareOperation implements RepositoryOperation {
-
- private ObjectFilter filter;
-
- public UpdateRepositoryOperation(ObjectFilter filter) {
- this.filter = filter;
- }
-
- public UpdateRepositoryOperation(ObjectFilter filter, Object payload) {
- super(payload);
- this.filter = filter;
- }
-
- public UpdateRepositoryOperation(ObjectFilter filter, Expression documentExpression) {
- super(documentExpression);
- this.filter = filter;
- }
-
- @Override
- protected void execute(Exchange exchange, NitriteEndpoint endpoint) throws Exception {
- ObjectRepository repository = (ObjectRepository) endpoint.getNitriteCollection();
- Object payload = getPayload(exchange, endpoint);
- if (filter != null) {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, repository.update(filter, payload));
- } else {
- exchange.getMessage().setHeader(NitriteConstants.WRITE_RESULT, repository.update(payload));
- }
- }
-
-}
diff --git a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/AbstractNitriteTest.java b/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/AbstractNitriteTest.java
deleted file mode 100644
index b4e9bb72f6a6..000000000000
--- a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/AbstractNitriteTest.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.nitrite;
-
-import java.io.File;
-import java.util.List;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.test.junit6.CamelTestSupport;
-import org.apache.camel.test.junit6.TestNameExtension;
-import org.apache.camel.util.FileUtil;
-import org.junit.jupiter.api.Order;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-public abstract class AbstractNitriteTest extends CamelTestSupport {
- @RegisterExtension
- @Order(10)
- TestNameExtension testNameExtension = new TestNameExtension();
-
- @Override
- protected void doPreSetup() throws Exception {
- super.doPreSetup();
- FileUtil.deleteFile(new File(tempDb()));
- }
-
- protected String tempDb() {
- return "target/" + getClass().getSimpleName() + "_" + testNameExtension.getCurrentTestName() + ".db";
- }
-
- protected List<Exchange> sortByChangeTimestamp(List<Exchange> input) {
- return input.stream().sorted((e1, e2) -> {
- Long timestamp1 = e1.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP, Long.class);
- Long timestamp2 = e2.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP, Long.class);
- if (timestamp1 == null || timestamp2 == null) {
- return 0;
- }
- return Long.compare(timestamp1, timestamp2);
- }).toList();
- }
-
-}
diff --git a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/MyPersistentObject.java b/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/MyPersistentObject.java
deleted file mode 100644
index 4eb766778b78..000000000000
--- a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/MyPersistentObject.java
+++ /dev/null
@@ -1,76 +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.nitrite;
-
-import org.dizitart.no2.IndexType;
-import org.dizitart.no2.objects.Id;
-import org.dizitart.no2.objects.Index;
-import org.dizitart.no2.objects.Indices;
-
-@Indices({
- @Index(value = "key1", type = IndexType.NonUnique),
- @Index(value = "key2", type = IndexType.Unique)
-})
-public class MyPersistentObject {
- @Id
- private long id;
- private String key1;
- private String key2;
- private String key3;
-
- public MyPersistentObject() {
- }
-
- public MyPersistentObject(long id, String key1, String key2, String key3) {
- this.id = id;
- this.key1 = key1;
- this.key2 = key2;
- this.key3 = key3;
- }
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public String getKey1() {
- return key1;
- }
-
- public void setKey1(String key1) {
- this.key1 = key1;
- }
-
- public String getKey2() {
- return key2;
- }
-
- public void setKey2(String key2) {
- this.key2 = key2;
- }
-
- public String getKey3() {
- return key3;
- }
-
- public void setKey3(String key3) {
- this.key3 = key3;
- }
-}
diff --git a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteComponentTest.java b/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteComponentTest.java
deleted file mode 100644
index 85a7c5a508a5..000000000000
--- a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteComponentTest.java
+++ /dev/null
@@ -1,69 +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.nitrite;
-
-import java.io.File;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.util.FileUtil;
-import org.dizitart.no2.Document;
-import org.junit.jupiter.api.Test;
-
-public class NitriteComponentTest extends AbstractNitriteTest {
-
- @Test
- public void testMultipleDatabases() throws Exception {
- MockEndpoint mockA = getMockEndpoint("mock:dbA");
- MockEndpoint mockB = getMockEndpoint("mock:dbB");
- MockEndpoint mockC = getMockEndpoint("mock:dbC");
- mockA.setExpectedMessageCount(1);
- mockB.setExpectedMessageCount(1);
- mockC.setExpectedMessageCount(1);
-
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb() + ".a.db"),
- Document.createDocument("key1", "db_a"));
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb() + ".b.db"),
- Document.createDocument("key1", "db_b"));
- template.sendBody(String.format("nitrite://%s?collection=collection2", tempDb() + ".c.db"),
- Document.createDocument("key1", "db_c"));
-
- mockA.assertIsSatisfied();
- mockB.assertIsSatisfied();
- mockC.assertIsSatisfied();
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- FileUtil.deleteFile(new File(tempDb() + ".a.db"));
- FileUtil.deleteFile(new File(tempDb() + ".b.db"));
- FileUtil.deleteFile(new File(tempDb() + ".c.db"));
- fromF("nitrite://%s?collection=collection", tempDb() + ".a.db")
- .to("log:a")
- .to("mock:dbA");
- fromF("nitrite://%s?collection=collection&username=login&password=secret", tempDb() + ".b.db")
- .to("log:b")
- .to("mock:dbB");
- fromF("nitrite://%s?collection=collection2&username=login2&password=s3cr3t", tempDb() + ".c.db")
- .to("log:c")
- .to("mock:dbC");
- }
- };
- }
-}
diff --git a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteConsumerCollectionTest.java b/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteConsumerCollectionTest.java
deleted file mode 100644
index 9d547dfd4e6a..000000000000
--- a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteConsumerCollectionTest.java
+++ /dev/null
@@ -1,156 +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.nitrite;
-
-import java.util.List;
-import java.util.Map;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.component.nitrite.operation.collection.FindCollectionOperation;
-import org.apache.camel.component.nitrite.operation.collection.RemoveCollectionOperation;
-import org.apache.camel.component.nitrite.operation.common.InsertOperation;
-import org.dizitart.no2.Document;
-import org.dizitart.no2.event.ChangeType;
-import org.dizitart.no2.filters.Filters;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-
-public class NitriteConsumerCollectionTest extends AbstractNitriteTest {
-
- @Test
- public void testCollectionUpsertInsert() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:result");
- mock.expectedMinimumMessageCount(2);
-
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key1", "value1"));
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key2", "value2"));
-
- mock.assertIsSatisfied();
-
- List<Exchange> sorted = sortByChangeTimestamp(mock.getExchanges());
- Exchange change1 = sorted.get(0);
- Exchange change2 = sorted.get(1);
-
- assertEquals(ChangeType.INSERT, change1.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
- assertEquals(ChangeType.INSERT, change2.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
-
- assertNotNull(change1.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- assertNotNull(change2.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
-
- assertNotNull(change1.getMessage().getBody(Map.class).get("key1"));
- assertEquals("value1", change1.getMessage().getBody(Map.class).get("key1"));
- assertNotNull(change2.getMessage().getBody(Map.class).get("key2"));
- assertEquals("value2", change2.getMessage().getBody(Map.class).get("key2"));
- }
-
- @Test
- public void testCollectionUpsertUpdate() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:result");
- mock.expectedMinimumMessageCount(2);
-
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key1", "value1").put("_id", 123L));
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key2", "value2").put("_id", 123L));
- mock.assertIsSatisfied();
-
- List<Exchange> sorted = sortByChangeTimestamp(mock.getExchanges());
- Exchange change1 = sorted.get(0);
- Exchange change2 = sorted.get(1);
-
- assertEquals(ChangeType.INSERT, change1.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
- assertEquals(ChangeType.UPDATE, change2.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
-
- assertNotNull(change1.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- assertNotNull(change2.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
-
- assertNotNull(change1.getMessage().getBody(Map.class).get("key1"));
- assertEquals("value1", change1.getMessage().getBody(Map.class).get("key1"));
- assertNotNull(change2.getMessage().getBody(Map.class).get("key2"));
- assertEquals("value2", change2.getMessage().getBody(Map.class).get("key2"));
- }
-
- @Test
- public void testCollectionInsert() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:result");
- mock.expectedMinimumMessageCount(1);
-
- template.sendBodyAndHeader(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key1", "value1"),
- NitriteConstants.OPERATION, new InsertOperation());
-
- mock.assertIsSatisfied();
-
- Exchange change1 = mock.getExchanges().get(0);
-
- assertEquals(ChangeType.INSERT, change1.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
-
- assertNotNull(change1.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
-
- assertNotNull(change1.getMessage().getBody(Map.class).get("key1"));
- assertEquals("value1", change1.getMessage().getBody(Map.class).get("key1"));
- }
-
- @Test
- public void testCollectionRemove() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:result");
- mock.expectedMinimumMessageCount(2);
-
- template.sendBodyAndHeader(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key1", "value1"),
- NitriteConstants.OPERATION, new InsertOperation());
- template.sendBodyAndHeader(String.format("nitrite://%s?collection=collection", tempDb()),
- null,
- NitriteConstants.OPERATION, new RemoveCollectionOperation(Filters.eq("key1", "value1")));
-
- assertEquals(
- 0,
- template.requestBody("direct:listAll", null, List.class).size());
-
- mock.assertIsSatisfied();
-
- List<Exchange> sorted = sortByChangeTimestamp(mock.getExchanges());
- Exchange insert = sorted.get(0);
- Exchange remove = sorted.get(1);
-
- assertEquals(ChangeType.INSERT, insert.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
- assertEquals(ChangeType.REMOVE, remove.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
-
- assertNotNull(insert.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- assertNotNull(remove.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- fromF("nitrite://%s?collection=collection", tempDb())
- .to("mock:result");
-
- from("direct:listAll")
- .setHeader(NitriteConstants.OPERATION, constant(new FindCollectionOperation()))
- .toF("nitrite://%s?collection=collection", tempDb());
- }
- };
- }
-}
diff --git a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteConsumerRepositoryTest.java b/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteConsumerRepositoryTest.java
deleted file mode 100644
index 84c8b7e517d1..000000000000
--- a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteConsumerRepositoryTest.java
+++ /dev/null
@@ -1,145 +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.nitrite;
-
-import java.util.List;
-import java.util.Map;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.component.nitrite.operation.common.InsertOperation;
-import org.apache.camel.component.nitrite.operation.repository.FindRepositoryOperation;
-import org.apache.camel.component.nitrite.operation.repository.RemoveRepositoryOperation;
-import org.dizitart.no2.event.ChangeType;
-import org.dizitart.no2.objects.filters.ObjectFilters;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-
-public class NitriteConsumerRepositoryTest extends AbstractNitriteTest {
-
- @Test
- public void testRepositoryUpsertInsert() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:result");
- mock.expectedMinimumMessageCount(2);
-
- template.sendBody(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(1L, "val1", "val2", ""));
- template.sendBody(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(2L, "val3", "val4", ""));
-
- mock.assertIsSatisfied();
-
- List<Exchange> sorted = sortByChangeTimestamp(mock.getExchanges());
- Exchange change1 = sorted.get(0);
- Exchange change2 = sorted.get(1);
-
- assertEquals(ChangeType.INSERT, change1.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
- assertEquals(ChangeType.INSERT, change2.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
-
- assertNotNull(change1.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- assertNotNull(change2.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
-
- assertNotNull(change1.getMessage().getBody(Map.class).get("key1"));
- assertEquals("val1", change1.getMessage().getBody(Map.class).get("key1"));
- assertNotNull(change2.getMessage().getBody(Map.class).get("key2"));
- assertEquals("val4", change2.getMessage().getBody(Map.class).get("key2"));
- }
-
- @Test
- public void testRepositoryUpsertUpdate() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:result");
- mock.expectedMinimumMessageCount(2);
-
- template.sendBody(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(123L, "val1", "val2", ""));
- template.sendBody(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(123L, "val3", "val4", ""));
-
- mock.assertIsSatisfied();
-
- assertEquals(
- 1,
- template.requestBody("direct:listAll", null, List.class).size());
-
- List<Exchange> sorted = sortByChangeTimestamp(mock.getExchanges());
- Exchange change1 = sorted.get(0);
- Exchange change2 = sorted.get(1);
-
- assertEquals(ChangeType.INSERT, change1.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
- assertEquals(ChangeType.UPDATE, change2.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
-
- assertNotNull(change1.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- assertNotNull(change2.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
-
- assertNotNull(change1.getMessage().getBody(Map.class).get("key1"));
- assertEquals("val1", change1.getMessage().getBody(Map.class).get("key1"));
- assertNotNull(change2.getMessage().getBody(Map.class).get("key2"));
- assertEquals("val4", change2.getMessage().getBody(Map.class).get("key2"));
- }
-
- @Test
- public void testRepositoryRemove() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:result");
- mock.expectedMinimumMessageCount(2);
-
- template.sendBodyAndHeader(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(123L, "val1", "val2", ""),
- NitriteConstants.OPERATION, new InsertOperation());
- template.sendBodyAndHeader(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- null,
- NitriteConstants.OPERATION, new RemoveRepositoryOperation(ObjectFilters.eq("key1", "val1")));
-
- assertEquals(
- 0,
- template.requestBody("direct:listAll", null, List.class).size());
-
- mock.assertIsSatisfied();
-
- List<Exchange> sorted = sortByChangeTimestamp(mock.getExchanges());
- Exchange insert = sorted.get(0);
- Exchange remove = sorted.get(1);
-
- assertEquals(ChangeType.INSERT, insert.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
- assertEquals(ChangeType.REMOVE, remove.getMessage().getHeader(NitriteConstants.CHANGE_TYPE));
-
- assertNotNull(insert.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- assertNotNull(remove.getMessage().getHeader(NitriteConstants.CHANGE_TIMESTAMP));
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- fromF("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName())
- .to("mock:result");
-
- from("direct:listAll")
- .setHeader(NitriteConstants.OPERATION, constant(new FindRepositoryOperation()))
- .toF("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName());
- }
- };
- }
-}
diff --git a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteProducerCollectionTest.java b/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteProducerCollectionTest.java
deleted file mode 100644
index ab9f68ad5c79..000000000000
--- a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteProducerCollectionTest.java
+++ /dev/null
@@ -1,246 +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.nitrite;
-
-import java.io.File;
-import java.util.List;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.operation.collection.FindCollectionOperation;
-import org.apache.camel.component.nitrite.operation.collection.RemoveCollectionOperation;
-import org.apache.camel.component.nitrite.operation.collection.UpdateCollectionOperation;
-import org.apache.camel.component.nitrite.operation.common.CreateIndexOperation;
-import org.apache.camel.component.nitrite.operation.common.DropIndexOperation;
-import org.apache.camel.component.nitrite.operation.common.ExportDatabaseOperation;
-import org.apache.camel.component.nitrite.operation.common.GetAttributesOperation;
-import org.apache.camel.component.nitrite.operation.common.GetByIdOperation;
-import org.apache.camel.component.nitrite.operation.common.ImportDatabaseOperation;
-import org.apache.camel.component.nitrite.operation.common.InsertOperation;
-import org.apache.camel.component.nitrite.operation.common.ListIndicesOperation;
-import org.apache.camel.component.nitrite.operation.common.RebuildIndexOperation;
-import org.apache.camel.component.nitrite.operation.common.UpdateOperation;
-import org.apache.camel.component.nitrite.operation.common.UpsertOperation;
-import org.apache.camel.component.nitrite.operation.repository.FindRepositoryOperation;
-import org.apache.camel.support.DefaultExchange;
-import org.apache.camel.util.FileUtil;
-import org.dizitart.no2.Document;
-import org.dizitart.no2.IndexOptions;
-import org.dizitart.no2.IndexType;
-import org.dizitart.no2.NitriteId;
-import org.dizitart.no2.WriteResult;
-import org.dizitart.no2.filters.Filters;
-import org.dizitart.no2.meta.Attributes;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-public class NitriteProducerCollectionTest extends AbstractNitriteTest {
-
- @BeforeEach
- public void insertData() {
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key1", "value1-a").put("key2", "value2-a").put("key3", "value3-a").put("_id", 1L));
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key1", "value1-b").put("key2", "value2-b").put("key3", "value3-b").put("_id", 2L));
- template.sendBody(String.format("nitrite://%s?collection=collection", tempDb()),
- Document.createDocument("key1", "value1-c").put("key2", "value2-c").put("key3", "value3-c").put("_id", 3L));
- }
-
- @Test
- public void findCollectionOperation() {
- List<Document> result = template.requestBodyAndHeader(
- String.format("nitrite://%s?collection=collection", tempDb()),
- null,
- NitriteConstants.OPERATION, new FindCollectionOperation(Filters.eq("key1", "value1-a")),
- List.class);
-
- assertEquals(1, result.size());
- assertEquals("value1-a", result.get(0).get("key1"));
- assertEquals("value2-a", result.get(0).get("key2"));
- assertEquals("value3-a", result.get(0).get("key3"));
- }
-
- @Test
- public void removeCollectionOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION,
- new RemoveCollectionOperation(Filters.eq("key2", "value2-b")));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void updateCollectionOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION,
- new UpdateCollectionOperation(Filters.eq("key2", "value2-b")));
- exchange.getMessage().setBody(Document.createDocument("key3", "updatedValue"));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void createIndexOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION,
- new CreateIndexOperation("key3", IndexOptions.indexOptions(IndexType.Unique)));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
-
- Exchange listIndices = new DefaultExchange(context);
- listIndices.getMessage().setHeader(NitriteConstants.OPERATION, new ListIndicesOperation());
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), listIndices);
-
- assertEquals(1, listIndices.getMessage().getBody(List.class).size());
- }
-
- @Test
- public void dropIndexOperation() throws Exception {
- createIndexOperation();
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new DropIndexOperation("key3"));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
-
- Exchange listIndices = new DefaultExchange(context);
- listIndices.getMessage().setHeader(NitriteConstants.OPERATION, new ListIndicesOperation());
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), listIndices);
-
- assertEquals(0, listIndices.getMessage().getBody(List.class).size());
- }
-
- @Test
- public void getAttributesOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new GetAttributesOperation());
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
- assertNotNull(exchange.getMessage().getBody(Attributes.class));
- }
-
- @Test
- public void getByIdOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new GetByIdOperation(NitriteId.createId(1L)));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
- assertNotNull(exchange.getMessage().getBody(Document.class));
- }
-
- @Test
- public void insertOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new InsertOperation(
- Document.createDocument("a", "b")));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void listIndicesOperation() throws Exception {
- createIndexOperation();
-
- Exchange listIndices = new DefaultExchange(context);
- listIndices.getMessage().setHeader(NitriteConstants.OPERATION, new ListIndicesOperation());
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), listIndices);
-
- assertEquals(1, listIndices.getMessage().getBody(List.class).size());
- }
-
- @Test
- public void rebuildIndexOperation() throws Exception {
- createIndexOperation();
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new RebuildIndexOperation(
- "key3"));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
-
- }
-
- @Test
- public void updateOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new UpdateOperation(
- Document.createDocument("a", "b").put("_id", 1L)));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void upsertOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new UpsertOperation(
- Document.createDocument("a", "b").put("_id", 1L)));
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void importDatabaseOperation() {
- FileUtil.deleteFile(new File(tempDb() + "clone"));
- byte[] ddl = template.requestBodyAndHeader(
- String.format("nitrite://%s?collection=collection", tempDb()),
- null,
- NitriteConstants.OPERATION, new ExportDatabaseOperation(),
- byte[].class);
-
- assertNotNull(ddl);
-
- template.sendBodyAndHeader(
- String.format("nitrite://%s?collection=collection", tempDb() + "clone"),
- ddl,
- NitriteConstants.OPERATION, new ImportDatabaseOperation());
-
- assertEquals(3,
- template.requestBodyAndHeader(
- String.format("nitrite://%s?collection=collection", tempDb() + "clone"),
- null,
- NitriteConstants.OPERATION, new FindCollectionOperation(),
- List.class).size());
- }
-
- @Test
- public void testForbiddenOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new FindRepositoryOperation());
-
- template.send(String.format("nitrite://%s?collection=collection", tempDb()), exchange);
-
- assertTrue(
- exchange.getException() instanceof IllegalArgumentException,
- String.format("Expected exception of type IllegalArgumentException, %s given", exchange.getException()));
- }
-}
diff --git a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteProducerRepositoryTest.java b/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteProducerRepositoryTest.java
deleted file mode 100644
index a018900b3bad..000000000000
--- a/components/camel-nitrite/src/test/java/org/apache/camel/component/nitrite/NitriteProducerRepositoryTest.java
+++ /dev/null
@@ -1,221 +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.nitrite;
-
-import java.util.List;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.nitrite.operation.collection.FindCollectionOperation;
-import org.apache.camel.component.nitrite.operation.common.CreateIndexOperation;
-import org.apache.camel.component.nitrite.operation.common.DropIndexOperation;
-import org.apache.camel.component.nitrite.operation.common.GetAttributesOperation;
-import org.apache.camel.component.nitrite.operation.common.InsertOperation;
-import org.apache.camel.component.nitrite.operation.common.ListIndicesOperation;
-import org.apache.camel.component.nitrite.operation.common.RebuildIndexOperation;
-import org.apache.camel.component.nitrite.operation.common.UpdateOperation;
-import org.apache.camel.component.nitrite.operation.common.UpsertOperation;
-import org.apache.camel.component.nitrite.operation.repository.FindRepositoryOperation;
-import org.apache.camel.component.nitrite.operation.repository.RemoveRepositoryOperation;
-import org.apache.camel.component.nitrite.operation.repository.UpdateRepositoryOperation;
-import org.apache.camel.support.DefaultExchange;
-import org.dizitart.no2.IndexOptions;
-import org.dizitart.no2.IndexType;
-import org.dizitart.no2.WriteResult;
-import org.dizitart.no2.meta.Attributes;
-import org.dizitart.no2.objects.filters.ObjectFilters;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-public class NitriteProducerRepositoryTest extends AbstractNitriteTest {
-
- @BeforeEach
- public void insertData() {
- template.sendBody(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(1, "a", "b", ""));
- template.sendBody(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(2, "c", "d", ""));
- template.sendBody(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- new MyPersistentObject(3, "e", "f", ""));
- }
-
- @Test
- public void findRepositoryOperation() {
- List<MyPersistentObject> result = template.requestBodyAndHeader(
- String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- null,
- NitriteConstants.OPERATION, new FindRepositoryOperation(ObjectFilters.eq("key1", "c")),
- List.class);
-
- assertEquals(1, result.size());
- assertEquals("c", result.get(0).getKey1());
- assertEquals("d", result.get(0).getKey2());
- }
-
- @Test
- public void removeRepositoryOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION,
- new RemoveRepositoryOperation(ObjectFilters.eq("key2", "b")));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void updateRepositoryOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION,
- new UpdateRepositoryOperation(ObjectFilters.eq("key2", "f")));
- exchange.getMessage().setBody(new MyPersistentObject(3, "updatedA", "updatedB", ""));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void createIndexOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION,
- new CreateIndexOperation("key3", IndexOptions.indexOptions(IndexType.Unique)));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
-
- Exchange listIndices = new DefaultExchange(context);
- listIndices.getMessage().setHeader(NitriteConstants.OPERATION, new ListIndicesOperation());
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- listIndices);
-
- assertEquals(4, listIndices.getMessage().getBody(List.class).size());
- }
-
- @Test
- public void dropIndexOperation() throws Exception {
- createIndexOperation();
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new DropIndexOperation("key3"));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
-
- Exchange listIndices = new DefaultExchange(context);
- listIndices.getMessage().setHeader(NitriteConstants.OPERATION, new ListIndicesOperation());
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- listIndices);
-
- assertEquals(3, listIndices.getMessage().getBody(List.class).size());
- }
-
- @Test
- public void getAttributesOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new GetAttributesOperation());
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
- assertNotNull(exchange.getMessage().getBody(Attributes.class));
- }
-
- @Test
- public void insertOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new InsertOperation(
- new MyPersistentObject(123, "", "", "")));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void listIndicesOperation() throws Exception {
- createIndexOperation();
-
- Exchange listIndices = new DefaultExchange(context);
- listIndices.getMessage().setHeader(NitriteConstants.OPERATION, new ListIndicesOperation());
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- listIndices);
-
- assertEquals(4, listIndices.getMessage().getBody(List.class).size());
- }
-
- @Test
- public void rebuildIndexOperation() throws Exception {
- createIndexOperation();
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new RebuildIndexOperation(
- "key3"));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
-
- }
-
- @Test
- public void updateOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new UpdateOperation(
- new MyPersistentObject(1, "", "", "")));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void upsertOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new UpsertOperation(
- new MyPersistentObject(1, "", "", "")));
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
- assertEquals(
- 1,
- exchange.getMessage().getHeader(NitriteConstants.WRITE_RESULT, WriteResult.class).getAffectedCount());
- }
-
- @Test
- public void testForbiddenOperation() {
- Exchange exchange = new DefaultExchange(context);
- exchange.getMessage().setHeader(NitriteConstants.OPERATION, new FindCollectionOperation());
-
- template.send(String.format("nitrite://%s?repositoryClass=%s", tempDb(), MyPersistentObject.class.getCanonicalName()),
- exchange);
-
- assertTrue(
- exchange.getException() instanceof IllegalArgumentException,
- String.format("Expected exception of type IllegalArgumentException, %s given", exchange.getException()));
- }
-}
diff --git a/components/camel-nitrite/src/test/resources/log4j2.properties b/components/camel-nitrite/src/test/resources/log4j2.properties
deleted file mode 100644
index af1a874d86e7..000000000000
--- a/components/camel-nitrite/src/test/resources/log4j2.properties
+++ /dev/null
@@ -1,23 +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.
-## ---------------------------------------------------------------------------
-appender.file.type=File
-appender.file.name=file
-appender.file.fileName=target/camel-nitrite-test.log
-appender.file.layout.type=PatternLayout
-appender.file.layout.pattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
-rootLogger.level=INFO
-rootLogger.appenderRef.file.ref=file
diff --git a/components/pom.xml b/components/pom.xml
index 4754d08470d6..6f38a7fa6ed1 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -236,7 +236,6 @@
<module>camel-nats</module>
<module>camel-netty-http</module>
<module>camel-netty</module>
- <module>camel-nitrite</module>
<module>camel-oaipmh</module>
<module>camel-oauth</module>
<module>camel-observation</module>
diff --git a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
index 6d5c7b68ee60..eaf24f1879fa 100644
--- a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
+++ b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
@@ -268,7 +268,6 @@ nats
neo4j
netty
netty-http
-nitrite
oaipmh
olingo2
olingo4
diff --git a/coverage/pom.xml b/coverage/pom.xml
index 1d8129955fc9..c237e301dc9f 100644
--- a/coverage/pom.xml
+++ b/coverage/pom.xml
@@ -1662,11 +1662,6 @@
<artifactId>camel-netty-http</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-nitrite</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-oaipmh</artifactId>
diff --git a/docs/components/modules/ROOT/examples/json/nitrite.json b/docs/components/modules/ROOT/examples/json/nitrite.json
deleted file mode 120000
index 9f80cd821bd7..000000000000
--- a/docs/components/modules/ROOT/examples/json/nitrite.json
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../../components/camel-nitrite/src/generated/resources/META-INF/org/apache/camel/component/nitrite/nitrite.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index 42c2efe32e44..ea54881f99ad 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -287,7 +287,6 @@
** xref:nats-component.adoc[Nats]
** xref:netty-component.adoc[Netty]
** xref:netty-http-component.adoc[Netty HTTP]
-** xref:nitrite-component.adoc[Nitrite]
** xref:oaipmh-component.adoc[OAI-PMH]
** xref:olingo2-component.adoc[Olingo2]
** xref:olingo4-component.adoc[Olingo4]
diff --git a/docs/components/modules/ROOT/pages/nitrite-component.adoc b/docs/components/modules/ROOT/pages/nitrite-component.adoc
deleted file mode 120000
index 9b43f61fd3b9..000000000000
--- a/docs/components/modules/ROOT/pages/nitrite-component.adoc
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../components/camel-nitrite/src/main/docs/nitrite-component.adoc
\ No newline at end of file
diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_19.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_19.adoc
index 3d9244a9d699..4a9675848ec8 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_19.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_19.adoc
@@ -127,3 +127,8 @@ Google recommends migrating your Pub/Sub Lite workloads to either:
When configured a custom `IdempotentRepository` on `camel-mail` endpoint, then Camel will now auto-start
the bean which is similar to what `camel-file` do as well.
+
+=== camel-nitrite (Removal)
+
+The camel-nitrite is removed in this version. It was deprecated in 4.10.
+
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 26a0f876563c..15bd51847edd 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -3634,19 +3634,6 @@ public interface ComponentsBuilderFactory {
static NettyHttpComponentBuilderFactory.NettyHttpComponentBuilder nettyHttp() {
return NettyHttpComponentBuilderFactory.nettyHttp();
}
- /**
- * Nitrite (camel-nitrite)
- * Access Nitrite databases.
- *
- * Category: database
- * Since: 3.0
- * Maven coordinates: org.apache.camel:camel-nitrite
- *
- * @return the dsl builder
- */
- static NitriteComponentBuilderFactory.NitriteComponentBuilder nitrite() {
- return NitriteComponentBuilderFactory.nitrite();
- }
/**
* OAI-PMH (camel-oaipmh)
* Harvest metadata using OAI-PMH protocol
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NitriteComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NitriteComponentBuilderFactory.java
deleted file mode 100644
index 7d324d39e0c9..000000000000
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NitriteComponentBuilderFactory.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-/*
- * 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.builder.component.dsl;
-
-import javax.annotation.processing.Generated;
-import org.apache.camel.Component;
-import org.apache.camel.builder.component.AbstractComponentBuilder;
-import org.apache.camel.builder.component.ComponentBuilder;
-import org.apache.camel.component.nitrite.NitriteComponent;
-
-/**
- * Access Nitrite databases.
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
-public interface NitriteComponentBuilderFactory {
-
- /**
- * Nitrite (camel-nitrite)
- * Access Nitrite databases.
- *
- * Category: database
- * Since: 3.0
- * Maven coordinates: org.apache.camel:camel-nitrite
- *
- * @return the dsl builder
- */
- static NitriteComponentBuilder nitrite() {
- return new NitriteComponentBuilderImpl();
- }
-
- /**
- * Builder for the Nitrite component.
- */
- interface NitriteComponentBuilder extends ComponentBuilder<NitriteComponent> {
-
-
- /**
- * 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.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: consumer
- *
- * @param bridgeErrorHandler the value to set
- * @return the dsl builder
- */
- default NitriteComponentBuilder bridgeErrorHandler(boolean bridgeErrorHandler) {
- doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
- return this;
- }
-
-
- /**
- * 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.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default NitriteComponentBuilder lazyStartProducer(boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
-
-
- /**
- * 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.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: advanced
- *
- * @param autowiredEnabled the value to set
- * @return the dsl builder
- */
- default NitriteComponentBuilder autowiredEnabled(boolean autowiredEnabled) {
- doSetProperty("autowiredEnabled", autowiredEnabled);
- return this;
- }
- }
-
- class NitriteComponentBuilderImpl
- extends AbstractComponentBuilder<NitriteComponent>
- implements NitriteComponentBuilder {
- @Override
- protected NitriteComponent buildConcreteComponent() {
- return new NitriteComponent();
- }
- @Override
- protected boolean setPropertyOnComponent(
- Component component,
- String name,
- Object value) {
- switch (name) {
- case "bridgeErrorHandler": ((NitriteComponent) component).setBridgeErrorHandler((boolean) value); return true;
- case "lazyStartProducer": ((NitriteComponent) component).setLazyStartProducer((boolean) value); return true;
- case "autowiredEnabled": ((NitriteComponent) component).setAutowiredEnabled((boolean) value); return true;
- default: return false;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index 3fc26dd54c46..484577cb0e46 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -273,7 +273,6 @@ public interface EndpointBuilderFactory
org.apache.camel.builder.endpoint.dsl.NettyEndpointBuilderFactory.NettyBuilders,
org.apache.camel.builder.endpoint.dsl.NettyHttpEndpointBuilderFactory.NettyHttpBuilders,
org.apache.camel.builder.endpoint.dsl.NeutronEndpointBuilderFactory.NeutronBuilders,
- org.apache.camel.builder.endpoint.dsl.NitriteEndpointBuilderFactory.NitriteBuilders,
org.apache.camel.builder.endpoint.dsl.NovaEndpointBuilderFactory.NovaBuilders,
org.apache.camel.builder.endpoint.dsl.OAIPMHEndpointBuilderFactory.OAIPMHBuilders,
org.apache.camel.builder.endpoint.dsl.OBSEndpointBuilderFactory.OBSBuilders,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index 46eb699ed574..ebed7ca621d0 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -270,7 +270,6 @@ public interface EndpointBuilders
org.apache.camel.builder.endpoint.dsl.NettyEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.NettyHttpEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.NeutronEndpointBuilderFactory,
- org.apache.camel.builder.endpoint.dsl.NitriteEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.NovaEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.OAIPMHEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.OBSEndpointBuilderFactory,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 175d1f596b20..b4091a624b1f 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -12090,48 +12090,6 @@ public class StaticEndpointBuilders {
public static NettyHttpEndpointBuilderFactory.NettyHttpEndpointBuilder nettyHttp(String componentName, String path) {
return NettyHttpEndpointBuilderFactory.endpointBuilder(componentName, path);
}
- /**
- * Nitrite (camel-nitrite)
- * Access Nitrite databases.
- *
- * Category: database
- * Since: 3.0
- * Maven coordinates: org.apache.camel:camel-nitrite
- *
- * Syntax: <code>nitrite:database</code>
- *
- * Path parameter: database (required)
- * Path to database file. Will be created if not exists.
- *
- * @param path database
- * @return the dsl builder
- */
- @Deprecated
- public static NitriteEndpointBuilderFactory.NitriteEndpointBuilder nitrite(String path) {
- return nitrite("nitrite", path);
- }
- /**
- * Nitrite (camel-nitrite)
- * Access Nitrite databases.
- *
- * Category: database
- * Since: 3.0
- * Maven coordinates: org.apache.camel:camel-nitrite
- *
- * Syntax: <code>nitrite:database</code>
- *
- * Path parameter: database (required)
- * Path to database file. Will be created if not exists.
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path database
- * @return the dsl builder
- */
- @Deprecated
- public static NitriteEndpointBuilderFactory.NitriteEndpointBuilder nitrite(String componentName, String path) {
- return NitriteEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
/**
* OAI-PMH (camel-oaipmh)
* Harvest metadata using OAI-PMH protocol
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NitriteEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NitriteEndpointBuilderFactory.java
deleted file mode 100644
index 8ff2fc667e12..000000000000
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NitriteEndpointBuilderFactory.java
+++ /dev/null
@@ -1,674 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-/*
- * 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.builder.endpoint.dsl;
-
-import java.util.*;
-import java.util.concurrent.*;
-import java.util.function.*;
-import java.util.stream.*;
-import javax.annotation.processing.Generated;
-import org.apache.camel.builder.EndpointConsumerBuilder;
-import org.apache.camel.builder.EndpointProducerBuilder;
-import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
-
-/**
- * Access Nitrite databases.
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
-public interface NitriteEndpointBuilderFactory {
-
- /**
- * Builder for endpoint consumers for the Nitrite component.
- */
- public interface NitriteEndpointConsumerBuilder
- extends
- EndpointConsumerBuilder {
- default AdvancedNitriteEndpointConsumerBuilder advanced() {
- return (AdvancedNitriteEndpointConsumerBuilder) this;
- }
- /**
- * Name of Nitrite collection. Cannot be used in combination with
- * repositoryClass option.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param collection the value to set
- * @return the dsl builder
- */
- default NitriteEndpointConsumerBuilder collection(String collection) {
- doSetProperty("collection", collection);
- return this;
- }
- /**
- * Class of Nitrite ObjectRepository. Cannot be used in combination with
- * collection option.
- *
- * The option is a: <code>java.lang.Class<java.lang.Object></code>
- * type.
- *
- * Group: common
- *
- * @param repositoryClass the value to set
- * @return the dsl builder
- */
- default NitriteEndpointConsumerBuilder repositoryClass(Class<java.lang.Object> repositoryClass) {
- doSetProperty("repositoryClass", repositoryClass);
- return this;
- }
- /**
- * Class of Nitrite ObjectRepository. Cannot be used in combination with
- * collection option.
- *
- * The option will be converted to a
- * <code>java.lang.Class<java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param repositoryClass the value to set
- * @return the dsl builder
- */
- default NitriteEndpointConsumerBuilder repositoryClass(String repositoryClass) {
- doSetProperty("repositoryClass", repositoryClass);
- return this;
- }
- /**
- * Optional name of ObjectRepository. Can be only used in combination
- * with repositoryClass, otherwise have no effect.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param repositoryName the value to set
- * @return the dsl builder
- */
- default NitriteEndpointConsumerBuilder repositoryName(String repositoryName) {
- doSetProperty("repositoryName", repositoryName);
- return this;
- }
- /**
- * Password for Nitrite database. Required, if option username
- * specified.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param password the value to set
- * @return the dsl builder
- */
- default NitriteEndpointConsumerBuilder password(String password) {
- doSetProperty("password", password);
- return this;
- }
- /**
- * Username for Nitrite database. Database is not secured if option not
- * specified.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param username the value to set
- * @return the dsl builder
- */
- default NitriteEndpointConsumerBuilder username(String username) {
- doSetProperty("username", username);
- return this;
- }
- }
-
- /**
- * Advanced builder for endpoint consumers for the Nitrite component.
- */
- public interface AdvancedNitriteEndpointConsumerBuilder
- extends
- EndpointConsumerBuilder {
- default NitriteEndpointConsumerBuilder basic() {
- return (NitriteEndpointConsumerBuilder) this;
- }
- /**
- * 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.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: consumer (advanced)
- *
- * @param bridgeErrorHandler the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler) {
- doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
- return this;
- }
- /**
- * 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.
- *
- * The option will be converted to a <code>boolean</code> type.
- *
- * Default: false
- * Group: consumer (advanced)
- *
- * @param bridgeErrorHandler the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler) {
- doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
- return this;
- }
- /**
- * 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 exceptions, that will be
- * logged at WARN or ERROR level and ignored.
- *
- * The option is a: <code>org.apache.camel.spi.ExceptionHandler</code>
- * type.
- *
- * Group: consumer (advanced)
- *
- * @param exceptionHandler the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) {
- doSetProperty("exceptionHandler", exceptionHandler);
- return this;
- }
- /**
- * 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 exceptions, that will be
- * logged at WARN or ERROR level and ignored.
- *
- * The option will be converted to a
- * <code>org.apache.camel.spi.ExceptionHandler</code> type.
- *
- * Group: consumer (advanced)
- *
- * @param exceptionHandler the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointConsumerBuilder exceptionHandler(String exceptionHandler) {
- doSetProperty("exceptionHandler", exceptionHandler);
- return this;
- }
- /**
- * Sets the exchange pattern when the consumer creates an exchange.
- *
- * The option is a: <code>org.apache.camel.ExchangePattern</code> type.
- *
- * Group: consumer (advanced)
- *
- * @param exchangePattern the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern) {
- doSetProperty("exchangePattern", exchangePattern);
- return this;
- }
- /**
- * Sets the exchange pattern when the consumer creates an exchange.
- *
- * The option will be converted to a
- * <code>org.apache.camel.ExchangePattern</code> type.
- *
- * Group: consumer (advanced)
- *
- * @param exchangePattern the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointConsumerBuilder exchangePattern(String exchangePattern) {
- doSetProperty("exchangePattern", exchangePattern);
- return this;
- }
- }
-
- /**
- * Builder for endpoint producers for the Nitrite component.
- */
- public interface NitriteEndpointProducerBuilder
- extends
- EndpointProducerBuilder {
- default AdvancedNitriteEndpointProducerBuilder advanced() {
- return (AdvancedNitriteEndpointProducerBuilder) this;
- }
-
- /**
- * Name of Nitrite collection. Cannot be used in combination with
- * repositoryClass option.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param collection the value to set
- * @return the dsl builder
- */
- default NitriteEndpointProducerBuilder collection(String collection) {
- doSetProperty("collection", collection);
- return this;
- }
- /**
- * Class of Nitrite ObjectRepository. Cannot be used in combination with
- * collection option.
- *
- * The option is a: <code>java.lang.Class<java.lang.Object></code>
- * type.
- *
- * Group: common
- *
- * @param repositoryClass the value to set
- * @return the dsl builder
- */
- default NitriteEndpointProducerBuilder repositoryClass(Class<java.lang.Object> repositoryClass) {
- doSetProperty("repositoryClass", repositoryClass);
- return this;
- }
- /**
- * Class of Nitrite ObjectRepository. Cannot be used in combination with
- * collection option.
- *
- * The option will be converted to a
- * <code>java.lang.Class<java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param repositoryClass the value to set
- * @return the dsl builder
- */
- default NitriteEndpointProducerBuilder repositoryClass(String repositoryClass) {
- doSetProperty("repositoryClass", repositoryClass);
- return this;
- }
- /**
- * Optional name of ObjectRepository. Can be only used in combination
- * with repositoryClass, otherwise have no effect.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param repositoryName the value to set
- * @return the dsl builder
- */
- default NitriteEndpointProducerBuilder repositoryName(String repositoryName) {
- doSetProperty("repositoryName", repositoryName);
- return this;
- }
- /**
- * Password for Nitrite database. Required, if option username
- * specified.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param password the value to set
- * @return the dsl builder
- */
- default NitriteEndpointProducerBuilder password(String password) {
- doSetProperty("password", password);
- return this;
- }
- /**
- * Username for Nitrite database. Database is not secured if option not
- * specified.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param username the value to set
- * @return the dsl builder
- */
- default NitriteEndpointProducerBuilder username(String username) {
- doSetProperty("username", username);
- return this;
- }
- }
-
- /**
- * Advanced builder for endpoint producers for the Nitrite component.
- */
- public interface AdvancedNitriteEndpointProducerBuilder extends EndpointProducerBuilder {
- default NitriteEndpointProducerBuilder basic() {
- return (NitriteEndpointProducerBuilder) this;
- }
-
- /**
- * 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.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer (advanced)
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- /**
- * 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.
- *
- * The option will be converted to a <code>boolean</code> type.
- *
- * Default: false
- * Group: producer (advanced)
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default AdvancedNitriteEndpointProducerBuilder lazyStartProducer(String lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- }
-
- /**
- * Builder for endpoint for the Nitrite component.
- */
- public interface NitriteEndpointBuilder
- extends
- NitriteEndpointConsumerBuilder,
- NitriteEndpointProducerBuilder {
- default AdvancedNitriteEndpointBuilder advanced() {
- return (AdvancedNitriteEndpointBuilder) this;
- }
-
- /**
- * Name of Nitrite collection. Cannot be used in combination with
- * repositoryClass option.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param collection the value to set
- * @return the dsl builder
- */
- default NitriteEndpointBuilder collection(String collection) {
- doSetProperty("collection", collection);
- return this;
- }
- /**
- * Class of Nitrite ObjectRepository. Cannot be used in combination with
- * collection option.
- *
- * The option is a: <code>java.lang.Class<java.lang.Object></code>
- * type.
- *
- * Group: common
- *
- * @param repositoryClass the value to set
- * @return the dsl builder
- */
- default NitriteEndpointBuilder repositoryClass(Class<java.lang.Object> repositoryClass) {
- doSetProperty("repositoryClass", repositoryClass);
- return this;
- }
- /**
- * Class of Nitrite ObjectRepository. Cannot be used in combination with
- * collection option.
- *
- * The option will be converted to a
- * <code>java.lang.Class<java.lang.Object></code> type.
- *
- * Group: common
- *
- * @param repositoryClass the value to set
- * @return the dsl builder
- */
- default NitriteEndpointBuilder repositoryClass(String repositoryClass) {
- doSetProperty("repositoryClass", repositoryClass);
- return this;
- }
- /**
- * Optional name of ObjectRepository. Can be only used in combination
- * with repositoryClass, otherwise have no effect.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param repositoryName the value to set
- * @return the dsl builder
- */
- default NitriteEndpointBuilder repositoryName(String repositoryName) {
- doSetProperty("repositoryName", repositoryName);
- return this;
- }
- /**
- * Password for Nitrite database. Required, if option username
- * specified.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param password the value to set
- * @return the dsl builder
- */
- default NitriteEndpointBuilder password(String password) {
- doSetProperty("password", password);
- return this;
- }
- /**
- * Username for Nitrite database. Database is not secured if option not
- * specified.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param username the value to set
- * @return the dsl builder
- */
- default NitriteEndpointBuilder username(String username) {
- doSetProperty("username", username);
- return this;
- }
- }
-
- /**
- * Advanced builder for endpoint for the Nitrite component.
- */
- public interface AdvancedNitriteEndpointBuilder
- extends
- AdvancedNitriteEndpointConsumerBuilder,
- AdvancedNitriteEndpointProducerBuilder {
- default NitriteEndpointBuilder basic() {
- return (NitriteEndpointBuilder) this;
- }
-
- }
-
- public interface NitriteBuilders {
- /**
- * Nitrite (camel-nitrite)
- * Access Nitrite databases.
- *
- * Category: database
- * Since: 3.0
- * Maven coordinates: org.apache.camel:camel-nitrite
- *
- * @return the dsl builder for the headers' name.
- */
- @Deprecated
- default NitriteHeaderNameBuilder nitrite() {
- return NitriteHeaderNameBuilder.INSTANCE;
- }
- /**
- * Nitrite (camel-nitrite)
- * Access Nitrite databases.
- *
- * Category: database
- * Since: 3.0
- * Maven coordinates: org.apache.camel:camel-nitrite
- *
- * Syntax: <code>nitrite:database</code>
- *
- * Path parameter: database (required)
- * Path to database file. Will be created if not exists.
- *
- * @param path database
- * @return the dsl builder
- */
- @Deprecated
- default NitriteEndpointBuilder nitrite(String path) {
- return NitriteEndpointBuilderFactory.endpointBuilder("nitrite", path);
- }
- /**
- * Nitrite (camel-nitrite)
- * Access Nitrite databases.
- *
- * Category: database
- * Since: 3.0
- * Maven coordinates: org.apache.camel:camel-nitrite
- *
- * Syntax: <code>nitrite:database</code>
- *
- * Path parameter: database (required)
- * Path to database file. Will be created if not exists.
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path database
- * @return the dsl builder
- */
- @Deprecated
- default NitriteEndpointBuilder nitrite(String componentName, String path) {
- return NitriteEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
-
- }
- /**
- * The builder of headers' name for the Nitrite component.
- */
- public static class NitriteHeaderNameBuilder {
- /**
- * The internal instance of the builder used to access to all the
- * methods representing the name of headers.
- */
- private static final NitriteHeaderNameBuilder INSTANCE = new NitriteHeaderNameBuilder();
-
- /**
- * Event timestamp in Epoch millis.
- *
- * The option is a: {@code long} type.
- *
- * Group: consumer
- *
- * @return the name of the header {@code NitriteChangeTimestamp}.
- */
- public String nitriteChangeTimestamp() {
- return "CamelNitriteChangeTimestamp";
- }
- /**
- * Type of event.
- *
- * The option is a: {@code org.dizitart.no2.event.ChangeType} type.
- *
- * Group: consumer
- *
- * @return the name of the header {@code NitriteChangeType}.
- */
- public String nitriteChangeType() {
- return "CamelNitriteChangeType";
- }
- /**
- * Operation to invoke on Collection or Repository. Defaults to
- * UpsertOperation if not specified.
- *
- * The option is a: {@code
- * org.apache.camel.component.nitrite.AbstractNitriteOperation} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code NitriteOperation}.
- */
- public String nitriteOperation() {
- return "CamelNitriteOperation";
- }
- /**
- * Result of data modifying operation.
- *
- * The option is a: {@code org.dizitart.no2.WriteResult} type.
- *
- * Group: common
- *
- * @return the name of the header {@code NitriteWriteResult}.
- */
- public String nitriteWriteResult() {
- return "CamelNitriteWriteResult";
- }
- }
- static NitriteEndpointBuilder endpointBuilder(String componentName, String path) {
- class NitriteEndpointBuilderImpl extends AbstractEndpointBuilder implements NitriteEndpointBuilder, AdvancedNitriteEndpointBuilder {
- public NitriteEndpointBuilderImpl(String path) {
- super(componentName, path);
- }
- }
- return new NitriteEndpointBuilderImpl(path);
- }
-}
\ No newline at end of file
diff --git a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
index 1543e590d258..e0701d518a73 100644
--- a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
+++ b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
@@ -280,7 +280,6 @@ org.apache.camel.component.nats.NatsComponent=camel:nats
org.apache.camel.component.neo4j.Neo4jComponent=camel:neo4j
org.apache.camel.component.netty.NettyComponent=camel:netty
org.apache.camel.component.netty.http.NettyHttpComponent=camel:netty-http
-org.apache.camel.component.nitrite.NitriteComponent=camel:nitrite
org.apache.camel.component.olingo2.Olingo2Component=camel:olingo2
org.apache.camel.component.olingo4.Olingo4Component=camel:olingo4
org.apache.camel.component.once.OnceComponent=camel:once
diff --git a/parent/pom.xml b/parent/pom.xml
index 57bbd52bd73a..629adba979ab 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -425,7 +425,6 @@
<netty-reactive-streams-version>2.0.5</netty-reactive-streams-version>
<networknt-json-schema-validator-version>1.5.9</networknt-json-schema-validator-version>
<nimbus-jose-jwt>10.7</nimbus-jose-jwt>
- <nitrite-version>3.4.4</nitrite-version>
<olingo2-version>2.0.13</olingo2-version>
<olingo4-version>5.0.0</olingo4-version>
<ognl-version>3.4.10</ognl-version>
@@ -2201,11 +2200,6 @@
<artifactId>camel-netty-http</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-nitrite</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-oaipmh</artifactId>