Class InterceptorAutoConfiguration

java.lang.Object
org.axonframework.springboot.autoconfig.InterceptorAutoConfiguration

Interceptor autoconfiguration class for Axon Framework application. Discovers MessageHandlerInterceptors and MessageDispatchInterceptor and registers them with the respective buses and gateways.

Note: This class use a hack approach! Because some gateways/buses (or custom interceptors provided by the framework user) need an axonConfiguration to initialize, the usual way of registering interceptors in the ConfigurerModule.onInitialize method does not work for them. This is due to a circular reference caused e.g. by JpaJavaxEventStoreAutoConfiguration. So we register them by injecting gateway/bus components in to the InitializingBean function and register the interceptors there.

Since:
4.11.0
Author:
Christian Thiel