@ConfigurationForTest annotation instead of the standard @Configuration
annotation.ComponentScanExcludingConfigurationForTest
instead of the ordinary ComponentScan.MatsMapping,
MatsClassMapping and MatsEndpointSetup, conceptually inspired by the @EnableWebMvc
annotation.@EnableMats to enable bean scanning for
@MatsMapping and @MatsClassMapping
annotations, simplifying use of Mats3 in a Spring context.Stage-annotated method on the class is a stage of
the Endpoint.@Stage annotation.Mats Single-stage
Endpoint or a
Mats
Terminator Endpoint, depending on whether the method specifies a return type, or is void.BeanPostProcessor-class specified by the @EnableMats annotation.@MatsMapping or @MatsEndpointSetup
annotated method raises InvocationTargetException and the underlying exception is not a
RuntimeException.ContextClosedEvent runs pretty much as the first step in the Spring life cycle stopping process:
Stop the MatsFactory, which will stop all MATS Endpoints, which will have them release their JMS resources - and
then the MatsFactory will clean out the JmsMatsJmsSessionHandler.ContextRefreshedEvent runs pretty much as the latest step in the Spring life cycle starting process:
Processes all MatsMapping and MatsEndpointSetup annotations, then starts the MatsFactory, which
will start any "hanging" MATS Endpoints, which will then start consuming messages.