Package org.openl.spring.config
Annotation Type ConditionalOnEnable
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.openl.spring.config.EnableCondition.class) public @interface ConditionalOnEnable
Enables bean registration when all properties not "false" and not empty. For example in@ConditionalOnEnable({"feature.enabled", "feature.module.enabled", "feature.param"})bean registration will be when the following properties are defined:feature.enabled=true feature.module.enabled=true feature.param=10- Author:
- Yury Molchan
-
-
Element Detail
-
value
String[] value
The set of properties to check.
-
-