Annotation Type Profile
Expresses a requirement for a bean to be wired/registered into the
BeanScope.
@Factory
public class MyAutoConfiguration {
@Bean
@Profile("test")
public MyService myService() {
...
}
}
In the sample above, the MyService bean will get wired only if avaje.profiles is
set to "test" in the ConfigPropertyPlugin.
Avaje Config provides an implementation and if it is included in the classpath then Avaje Config will be used to test the property conditions.
If no ConfigPropertyPlugin is found then the default implementation is used which uses
System.getProperty(String) and System.getenv(String).
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
all
-
none
-