diff --git a/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamAutoConfiguration.java b/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamAutoConfiguration.java index b973639..38afa40 100644 --- a/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamAutoConfiguration.java +++ b/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamAutoConfiguration.java @@ -19,8 +19,6 @@ import org.axonframework.axonserver.connector.event.axon.PersistentStreamMessageSourceFactory; import org.axonframework.common.StringUtils; import org.axonframework.extensions.multitenancy.components.TenantProvider; -import org.axonframework.extensions.multitenancy.components.eventstore.MultiTenantPersistentStreamMessageSource; -import org.axonframework.extensions.multitenancy.components.eventstore.TenantPersistentStreamMessageSourceFactory; import org.axonframework.springboot.autoconfig.AxonServerAutoConfiguration; import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.autoconfigure.AutoConfigureBefore; diff --git a/multitenancy/src/main/java/org/axonframework/extensions/multitenancy/components/eventstore/MultiTenantPersistentStreamMessageSource.java b/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamMessageSource.java similarity index 97% rename from multitenancy/src/main/java/org/axonframework/extensions/multitenancy/components/eventstore/MultiTenantPersistentStreamMessageSource.java rename to multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamMessageSource.java index 5c49919..3a5954c 100644 --- a/multitenancy/src/main/java/org/axonframework/extensions/multitenancy/components/eventstore/MultiTenantPersistentStreamMessageSource.java +++ b/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamMessageSource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.axonframework.extensions.multitenancy.components.eventstore; +package org.axonframework.extensions.multitenancy.autoconfig; import io.axoniq.axonserver.connector.event.PersistentStreamProperties; @@ -22,6 +22,7 @@ import org.axonframework.extensions.multitenancy.components.MultiTenantAwareComponent; import org.axonframework.extensions.multitenancy.components.TenantDescriptor; import org.axonframework.common.Registration; +import org.axonframework.extensions.multitenancy.components.eventstore.MultiTenantSubscribableMessageSource; import java.util.Collections; import java.util.Map; diff --git a/multitenancy/src/main/java/org/axonframework/extensions/multitenancy/components/eventstore/TenantPersistentStreamMessageSourceFactory.java b/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/TenantPersistentStreamMessageSourceFactory.java similarity index 95% rename from multitenancy/src/main/java/org/axonframework/extensions/multitenancy/components/eventstore/TenantPersistentStreamMessageSourceFactory.java rename to multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/TenantPersistentStreamMessageSourceFactory.java index 9a0a28c..dca9b1d 100644 --- a/multitenancy/src/main/java/org/axonframework/extensions/multitenancy/components/eventstore/TenantPersistentStreamMessageSourceFactory.java +++ b/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/TenantPersistentStreamMessageSourceFactory.java @@ -13,10 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.axonframework.extensions.multitenancy.components.eventstore; +package org.axonframework.extensions.multitenancy.autoconfig; import io.axoniq.axonserver.connector.event.PersistentStreamProperties; -import org.axonframework.axonserver.connector.AxonServerConfiguration; import org.axonframework.axonserver.connector.event.axon.PersistentStreamMessageSource; import org.axonframework.config.Configuration; import org.axonframework.extensions.multitenancy.components.TenantDescriptor; diff --git a/multitenancy-spring-boot-autoconfigure/src/test/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenancyAutoConfigurationTest.java b/multitenancy-spring-boot-autoconfigure/src/test/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenancyAutoConfigurationTest.java index 1e1aba4..a8841f0 100644 --- a/multitenancy-spring-boot-autoconfigure/src/test/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenancyAutoConfigurationTest.java +++ b/multitenancy-spring-boot-autoconfigure/src/test/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenancyAutoConfigurationTest.java @@ -25,7 +25,6 @@ import org.axonframework.extensions.multitenancy.components.deadletterqueue.MultiTenantDeadLetterQueueFactory; import org.axonframework.extensions.multitenancy.components.eventstore.MultiTenantEventStore; import org.axonframework.extensions.multitenancy.components.eventstore.TenantEventSegmentFactory; -import org.axonframework.extensions.multitenancy.components.eventstore.TenantPersistentStreamMessageSourceFactory; import org.axonframework.extensions.multitenancy.components.queryhandeling.MultiTenantQueryBus; import org.axonframework.extensions.multitenancy.components.queryhandeling.MultiTenantQueryUpdateEmitter; import org.axonframework.extensions.multitenancy.components.queryhandeling.TenantQuerySegmentFactory; diff --git a/multitenancy/src/test/java/org/axonframework/extensions/multitenancy/components/eventstore/MultiTenantPersistentStreamMessageSourceTest.java b/multitenancy-spring-boot-autoconfigure/src/test/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamMessageSourceTest.java similarity index 95% rename from multitenancy/src/test/java/org/axonframework/extensions/multitenancy/components/eventstore/MultiTenantPersistentStreamMessageSourceTest.java rename to multitenancy-spring-boot-autoconfigure/src/test/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamMessageSourceTest.java index 7e53394..93f724d 100644 --- a/multitenancy/src/test/java/org/axonframework/extensions/multitenancy/components/eventstore/MultiTenantPersistentStreamMessageSourceTest.java +++ b/multitenancy-spring-boot-autoconfigure/src/test/java/org/axonframework/extensions/multitenancy/autoconfig/MultiTenantPersistentStreamMessageSourceTest.java @@ -13,15 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.axonframework.extensions.multitenancy.components.eventstore; +package org.axonframework.extensions.multitenancy.autoconfig; import io.axoniq.axonserver.connector.event.PersistentStreamProperties; import org.axonframework.axonserver.connector.event.axon.PersistentStreamMessageSource; import org.axonframework.config.Configuration; -import org.axonframework.extensions.multitenancy.components.eventstore.MultiTenantPersistentStreamMessageSource; import org.axonframework.extensions.multitenancy.components.TenantDescriptor; import org.axonframework.common.Registration; -import org.axonframework.extensions.multitenancy.components.eventstore.TenantPersistentStreamMessageSourceFactory; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock;