Skip to content

Commit 4695028

Browse files
authored
Merge pull request #170 from AxonIQ/fix/nightly-af-compat
Restore nightly Axon(iq)Framework compatibility: describe AxoniqPlatformStateManager
2 parents cf6a7ca + 43b6429 commit 4695028

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

framework-client/src/main/java/io/axoniq/platform/framework/modelling/AxoniqPlatformStateManager.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package io.axoniq.platform.framework.modelling
1818

19+
import org.axonframework.common.infra.ComponentDescriptor
20+
import org.axonframework.common.infra.DescribableComponent
1921
import org.axonframework.messaging.core.unitofwork.ProcessingContext
2022
import org.axonframework.modelling.StateManager
2123
import org.axonframework.modelling.repository.ManagedEntity
@@ -25,7 +27,7 @@ import java.util.concurrent.CompletableFuture
2527
class AxoniqPlatformStateManager(
2628
private val delegate: StateManager,
2729
private val entityMetricsRegistry: EntityMetricsRegistry,
28-
): StateManager {
30+
): StateManager, DescribableComponent {
2931
override fun <ID: Any, T: Any> register(repository: Repository<ID, T>): StateManager {
3032
if(repository is AxoniqPlatformRepository<ID, T>) {
3133
delegate.register<ID, T>(repository)
@@ -51,4 +53,8 @@ class AxoniqPlatformStateManager(
5153
return delegate.repository(entityType, idType)
5254
}
5355

56+
override fun describeTo(descriptor: ComponentDescriptor) {
57+
descriptor.describeWrapperOf(delegate)
58+
}
59+
5460
}

0 commit comments

Comments
 (0)