@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@Profile(value="!flamingock-cli")
public @interface FlamingockCliExcluded
This is a convenience meta-annotation that wraps @Profile("!flamingock-cli").
Use this annotation on components or bean methods that should not be loaded
when the application is executed via the Flamingock CLI.
Example usage:
@Component
@FlamingockCliExcluded
public class MyService {
// This bean will not be loaded when running via Flamingock CLI
}
@Configuration
public class MyConfig {
@Bean
@FlamingockCliExcluded
public MyBean myBean() {
// This bean will not be loaded when running via Flamingock CLI
return new MyBean();
}
}
FlamingockCliOnly,
Profile