@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface TestOnly
Some IDEs and some environments may improperly add test classes to the classpath in development mode. This
clarifying annotation tells the IOC container not to consider beans annotated with this annotation unless
they are running within the test environment.
- Author:
- Mike Brock