AxonFramework / AxonFramework

Framework for Evolutionary Message-Driven Microservices on the JVM
https://axoniq.io/
Apache License 2.0
3.32k stars 788 forks source link

Configure application wide `Clock` #3083

Open smcvb opened 1 month ago

smcvb commented 1 month ago

Description

Although in a lot of cases, the positioning of the Clock on the GenericEventMessage as a public static field has been sufficient, as far as configuration goes, it is not very nice.

Granted, it can be adjusted by the user, since the field is public. But given the existence of the Configurer it is somewhat of an oddball in Axon Framework.

Hence, we should provide a means to define a single Clock on the overall Axon Framework configuration API.