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
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String[] value
      The set of properties to check.
    • Element Detail

      • value

        String[] value
        The set of properties to check.