类 OnEndpointElementCondition

java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.actuate.autoconfigure.OnEndpointElementCondition
所有已实现的接口:
Condition

public abstract class OnEndpointElementCondition extends SpringBootCondition
Base endpoint element condition. An element can be disabled globally through the defaults name or individually through the name of the element.
从以下版本开始:
2.0.0
作者:
Stephane Nicoll, Madhura Bhave
  • 构造器详细资料

    • OnEndpointElementCondition

      protected OnEndpointElementCondition(String prefix, Class<? extends Annotation> annotationType)
  • 方法详细资料

    • getMatchOutcome

      public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
      从类复制的说明: SpringBootCondition
      Determine the outcome of the match along with suitable log output.
      指定者:
      getMatchOutcome 在类中 SpringBootCondition
      参数:
      context - the condition context
      metadata - the annotation metadata
      返回:
      the condition outcome
    • getEndpointOutcome

      protected ConditionOutcome getEndpointOutcome(ConditionContext context, String endpointName)
    • getDefaultOutcome

      protected ConditionOutcome getDefaultOutcome(ConditionContext context, AnnotationAttributes annotationAttributes)
      Return the default outcome that should be used if property is not set. By default this method will use the <prefix>.defaults.enabled property, matching if it is true or if it is not configured.
      参数:
      context - the condition context
      annotationAttributes - the annotation attributes
      返回:
      the default outcome
      从以下版本开始:
      2.6.0