io.mats3.spring.ConfigurationForTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mats-spring Show documentation
Show all versions of mats-spring Show documentation
Mats^3 Spring integration ("SpringConfig"), supplying a set of annotations including @EnableMats to enable bean scanning for @MatsMapping and @MatsClassMapping annotations, simplifying Mats^3 use in a Spring context.
package io.mats3.spring;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Configuration;
/**
* 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 {@link ComponentScanExcludingConfigurationForTest}
* instead of the ordinary ComponentScan
. Read more at {@link ComponentScanExcludingConfigurationForTest}.
*
* @see ComponentScanExcludingConfigurationForTest
* @author Endre Stølsvik 2019-08-12 22:38 - http://stolsvik.com/, [email protected]
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Configuration // meta-annotation
public @interface ConfigurationForTest {}