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

Allow `ParameterResolver` configuration through Java API #3090

Open smcvb opened 1 month ago

smcvb commented 1 month ago

As of the current implementation, users need to supply a file in de META-INF directory to customize parameter resolvers. This is done using the ClasspathParameterResolverFactory, which actually scans for all implementations of the ParameterResolverFactory interface.

Almost everything is configurable through Java API, with this still being an exception. It would be great to have the following method on the Configurer: public void registerParameterResolverFactory(ParameterResolverFactory factory).

This way, users can also register multiple if they want to.