Remove registrations of interceptor beans with an Axon bus

Proprietary

Axon Framework 5's CommandBus, QueryBus and EventBus have no registerDispatchInterceptor or registerHandlerInterceptor. Its Spring Boot autoconfiguration registers each interceptor bean in the application context with the buses for the message type the interceptor takes. A registration in an @Autowired, @Bean or @PostConstruct method is removed when the interceptor is a bean, one the method takes as a parameter or gets with getBean(Type.class), and the interceptor takes the bus's own message type, such as a MessageDispatchInterceptor<CommandMessage<?>> on the CommandBus. An @Autowired method left empty is removed too. An interceptor of every message type, or one the code creates itself, is left for a person to register.

io.moderne.axon.RemoveBeanInterceptorRegistration
mod run . --recipe=io.moderne.axon.RemoveBeanInterceptorRegistration

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.