All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mats3.spring.ConfigurationForTest Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.19.22-2024-11-09
Show newest version
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 {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy