From bf4351888e4c08bd2f5b6273d138f4448f45d28b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 11 Jan 2023 22:13:04 +0100 Subject: [PATCH] refactor: Moved base-configuration into separate package -- Rename --- .../de/juplo/kafka/chat/backend/ChatBackendApplication.java | 1 + .../kafka/chat/backend/config/ChatBackendConfiguration.java | 2 +- .../juplo/kafka/chat/backend/config/ChatBackendProperties.java | 2 +- .../persistence/inmemory/InMemoryServicesAutoConfiguration.java | 2 +- .../storage/files/FilesStorageAutoConfiguration.java | 2 +- .../storage/mongodb/MongoDbStorageConfiguration.java | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/ChatBackendApplication.java b/src/main/java/de/juplo/kafka/chat/backend/ChatBackendApplication.java index c61f8488..60abec90 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/ChatBackendApplication.java +++ b/src/main/java/de/juplo/kafka/chat/backend/ChatBackendApplication.java @@ -1,5 +1,6 @@ package de.juplo.kafka.chat.backend; +import de.juplo.kafka.chat.backend.config.ChatBackendProperties; import de.juplo.kafka.chat.backend.domain.ChatHome; import de.juplo.kafka.chat.backend.persistence.StorageStrategy; import jakarta.annotation.PreDestroy; diff --git a/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendConfiguration.java index 10e9d37b..9bd29b04 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendConfiguration.java @@ -1,4 +1,4 @@ -package de.juplo.kafka.chat.backend; +package de.juplo.kafka.chat.backend.config; import de.juplo.kafka.chat.backend.domain.ChatHome; import de.juplo.kafka.chat.backend.domain.ChatHomeService; diff --git a/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendProperties.java b/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendProperties.java index 48e58165..7946e3f6 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendProperties.java +++ b/src/main/java/de/juplo/kafka/chat/backend/config/ChatBackendProperties.java @@ -1,4 +1,4 @@ -package de.juplo.kafka.chat.backend; +package de.juplo.kafka.chat.backend.config; import lombok.Getter; import lombok.Setter; diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesAutoConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesAutoConfiguration.java index 7e3667df..7f172d5f 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesAutoConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesAutoConfiguration.java @@ -1,6 +1,6 @@ package de.juplo.kafka.chat.backend.persistence.inmemory; -import de.juplo.kafka.chat.backend.ChatBackendProperties; +import de.juplo.kafka.chat.backend.config.ChatBackendProperties; import de.juplo.kafka.chat.backend.persistence.StorageStrategy; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/files/FilesStorageAutoConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/files/FilesStorageAutoConfiguration.java index 2a3936cd..8b6150cb 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/files/FilesStorageAutoConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/files/FilesStorageAutoConfiguration.java @@ -1,7 +1,7 @@ package de.juplo.kafka.chat.backend.persistence.storage.files; import com.fasterxml.jackson.databind.ObjectMapper; -import de.juplo.kafka.chat.backend.ChatBackendProperties; +import de.juplo.kafka.chat.backend.config.ChatBackendProperties; import de.juplo.kafka.chat.backend.persistence.StorageStrategy; import de.juplo.kafka.chat.backend.persistence.inmemory.InMemoryChatRoomService; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/MongoDbStorageConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/MongoDbStorageConfiguration.java index 120fab34..907db21e 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/MongoDbStorageConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/MongoDbStorageConfiguration.java @@ -1,7 +1,7 @@ package de.juplo.kafka.chat.backend.persistence.storage.mongodb; import com.fasterxml.jackson.databind.ObjectMapper; -import de.juplo.kafka.chat.backend.ChatBackendProperties; +import de.juplo.kafka.chat.backend.config.ChatBackendProperties; import de.juplo.kafka.chat.backend.persistence.StorageStrategy; import de.juplo.kafka.chat.backend.persistence.inmemory.InMemoryChatRoomService; import de.juplo.kafka.chat.backend.persistence.storage.files.FilesStorageStrategy; -- 2.20.1