Package io.mats3.spring
Mats3 Spring integration ("SpringConfig"), supplying a set of annotations including
@EnableMats to enable bean scanning for
@MatsMapping and @MatsClassMapping
annotations, simplifying use of Mats3 in a Spring context.-
Class Summary Class Description MatsSpringAnnotationRegistration TheBeanPostProcessor-class specified by the@EnableMatsannotation. -
Exception Summary Exception Description MatsSpringAnnotationRegistration.MatsSpringConfigException Thrown if the setup of a Mats Spring endpoint fails.MatsSpringAnnotationRegistration.MatsSpringInvocationTargetException Thrown if the invocation of a@MatsMappingor@MatsEndpointSetupannotated method raisesInvocationTargetExceptionand the underlying exception is not aRuntimeException. -
Annotation Types Summary Annotation Type Description ComponentScanExcludingConfigurationForTest A simple convenience replacement for @ComponentScan which excludes any configuration classes employing the special@ConfigurationForTestannotation instead of the standard@Configurationannotation.ConfigurationForTest An "alias" for the @Configuration annotation which is meant to be used on tests' configuration classes - which then is excluded from component scanning if the component scan is usingComponentScanExcludingConfigurationForTestinstead of the ordinaryComponentScan.Dto Specifies that the annotated method parameter is an incoming Data Transfer Object.EnableMats Enables Mats "SpringConfig", which is bean-scanning for methods on Spring beans annotated withMatsMapping,MatsClassMappingandMatsEndpointSetup, conceptually inspired by the @EnableWebMvc annotation.MatsClassMapping A class annotated with this repeatable annotation will become a Mats Endpoint, where an instance of the class itself is the State (STO) object for the Endpoint, and each @Stage-annotated method on the class is a stage of the Endpoint.MatsClassMapping.MatsClassMappings MatsClassMapping.Stage Each method in the class that shall correspond to a Stage on the Mats endpoint must be annotated with this@Stageannotation.MatsEndpointSetup NOTE: You should probably useMatsClassMappingor@MatsMappinginstead - or otherwise consider plain programmatic registration instead of using this feature as it brings very little convenience compared to pure Java.MatsEndpointSetup.MatsEndpointSetups MatsMapping A method annotated with this repeatable annotation directly becomes aMats Single-stage Endpointor aMats Terminator Endpoint, depending on whether the method specifies a return type, or is void.MatsMapping.MatsMappings Sto Specifies that the annotated method parameter is an incoming State Transfer Object.