类 AnyNestedCondition

所有已实现的接口:
Condition, ConfigurationCondition, cn.taketoday.core.Ordered

public abstract class AnyNestedCondition extends AbstractNestedCondition implements cn.taketoday.core.Ordered
Condition that will match when any nested class condition matches. Can be used to create composite conditions, for example:
 static class OnJndiOrProperty extends AnyNestedCondition {

    OnJndiOrProperty() {
        super(ConfigurationPhase.PARSE_CONFIGURATION);
    }

    @ConditionalOnJndi()
    static class OnJndi {
    }

    @ConditionalOnProperty("something")
    static class OnProperty {
    }

 }
 

The ConfigurationPhase should be specified according to the conditions that are defined. In the example above, all conditions are static and can be evaluated early so PARSE_CONFIGURATION is a right fit.

从以下版本开始:
4.0 2022/1/16 17:59
作者:
Phillip Webb, Harry Yang