Are you an LLM? You can read better optimized documentation at /guide/extensions/cosid-axon.md for this page in Markdown format
CosId-Axon Module
The Axon module provides CosId support for Axon-Framework, implementing the org.axonframework.common.IdentifierFactory interface of Axon-Framework.
Installation
kotlin
val cosidVersion = "latestVersion"
implementation("me.ahoo.cosid:cosid-axon:${cosidVersion}")xml
<dependencies>
<dependency>
<groupId>me.ahoo.cosid</groupId>
<artifactId>cosid-axon</artifactId>
<version>${cosid.version}</version>
</dependency>
</dependencies>Configuration
By default, CosIdIdentifierFactory will retrieve the ID generator named __share__ from the ID generator container (IdGeneratorProvider).
Developers can also customize the ID generator name by configuring the system property cosid.axon.
