@EnableMats
to enable bean scanning for
@MatsMapping
and @MatsClassMapping
annotations, simplifying use of Mats3 in a Spring context.See: Description
Class | Description |
---|---|
MatsSpringAnnotationRegistration |
The
BeanPostProcessor -class specified by the @EnableMats annotation. |
Exception | Description |
---|---|
MatsSpringAnnotationRegistration.MatsSpringConfigException |
Thrown if the setup of a Mats Spring endpoint fails.
|
MatsSpringAnnotationRegistration.MatsSpringInvocationTargetException |
Thrown if the invocation of a
@MatsMapping or @MatsEndpointSetup
annotated method raises InvocationTargetException and the underlying exception is not a
RuntimeException . |
Annotation Type | Description |
---|---|
ComponentScanExcludingConfigurationForTest |
A simple convenience replacement for @ComponentScan which excludes any configuration classes employing the special
@ConfigurationForTest annotation instead of the standard @Configuration
annotation. |
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 using
ComponentScanExcludingConfigurationForTest
instead of the ordinary ComponentScan . |
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 with
MatsMapping ,
MatsClassMapping and MatsEndpointSetup , 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
@Stage annotation. |
MatsEndpointSetup |
A method annotated with this repeatable annotation specifies a method that shall set up a (usually)
Multi-Staged Mats Endpoint.
|
MatsEndpointSetup.MatsEndpointSetups | |
MatsMapping |
A method annotated with this repeatable annotation directly becomes a
Mats Single-stage
Endpoint or a
Mats
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.
|
@EnableMats
to enable bean scanning for
@MatsMapping
and @MatsClassMapping
annotations, simplifying use of Mats3 in a Spring context.