类 OnEndpointElementCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.actuate.autoconfigure.OnEndpointElementCondition
- 所有已实现的接口:
Condition
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
-
构造器概要
构造器限定符构造器说明protectedOnEndpointElementCondition(String prefix, Class<? extends Annotation> annotationType) -
方法概要
修饰符和类型方法说明protected ConditionOutcomegetDefaultOutcome(ConditionContext context, AnnotationAttributes annotationAttributes) Return the default outcome that should be used if property is not set.protected ConditionOutcomegetEndpointOutcome(ConditionContext context, String endpointName) getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.从类继承的方法 org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
-
构造器详细资料
-
OnEndpointElementCondition
-
-
方法详细资料
-
getMatchOutcome
从类复制的说明:SpringBootConditionDetermine the outcome of the match along with suitable log output.- 指定者:
getMatchOutcome在类中SpringBootCondition- 参数:
context- the condition contextmetadata- the annotation metadata- 返回:
- the condition outcome
-
getEndpointOutcome
-
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.enabledproperty, matching if it istrueor if it is not configured.- 参数:
context- the condition contextannotationAttributes- the annotation attributes- 返回:
- the default outcome
- 从以下版本开始:
- 2.6.0
-