Package io.mats3.spring
Annotation Interface EnableMats
@Target(TYPE)
@Retention(RUNTIME)
@Import(MatsSpringAnnotationRegistration.class)
@Documented
public @interface 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. One (or several) MatsFactory
s must be set up in the Spring context. Methods (or classes in case
of @MatsClassMapping) having the specified annotations will get Mats endpoints set up for them on the
MatsFactory
.
This annotation simply imports the MatsSpringAnnotationRegistration
bean, which is a Spring
BeanPostProcessor
. Read more JavaDoc there!