类 ConditionEvaluator

java.lang.Object
cn.taketoday.context.annotation.ConditionEvaluator

public class ConditionEvaluator extends Object
Condition Evaluation
从以下版本开始:
4.0
作者:
TODAY 2021/10/1 21:12
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • passCondition

      public boolean passCondition(cn.taketoday.core.type.AnnotatedTypeMetadata metadata)
      Determine if an item should be skipped based on @Conditional annotations.
      参数:
      metadata - the meta data
      返回:
      if the item should be skipped
    • passCondition

      public boolean passCondition(Class<?> annotated)
      Decide whether to load the bean
      参数:
      annotated - Target class or a method
      返回:
      If matched
    • passCondition

      public boolean passCondition(Method annotated)
    • passCondition

      public boolean passCondition(cn.taketoday.core.type.AnnotatedTypeMetadata metadata, @Nullable ConfigurationCondition.ConfigurationPhase phase)
    • shouldSkip

      public boolean shouldSkip(cn.taketoday.core.type.AnnotatedTypeMetadata metadata)
      Determine if an item should be skipped based on @Conditional annotations. The ConfigurationCondition.ConfigurationPhase will be deduced from the type of item (i.e. a @Configuration class will be ConfigurationCondition.ConfigurationPhase.PARSE_CONFIGURATION)
      参数:
      metadata - the meta data
      返回:
      if the item should be skipped
    • shouldSkip

      public boolean shouldSkip(@Nullable cn.taketoday.core.type.AnnotatedTypeMetadata metadata, @Nullable ConfigurationCondition.ConfigurationPhase phase)
      Determine if an item should be skipped based on @Conditional annotations.
      参数:
      metadata - the meta data
      phase - the phase of the call
      返回:
      if the item should be skipped