Class OnEndpointElementCondition
- java.lang.Object
- org.springframework.boot.autoconfigure.condition.SpringBootCondition
- org.springframework.boot.actuate.autoconfigure.OnEndpointElementCondition
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
public abstract class OnEndpointElementCondition extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
Base endpoint element condition. An element can be disabled globally via thedefaultsname or individually via the name of the element.- Since:
- 2.0.0
Constructor Summary
Constructors Modifier Constructor Description protectedOnEndpointElementCondition(String prefix, Class<? extends Annotation> annotationType)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.boot.autoconfigure.condition.ConditionOutcomegetDefaultEndpointsOutcome(org.springframework.context.annotation.ConditionContext context)protected org.springframework.boot.autoconfigure.condition.ConditionOutcomegetEndpointOutcome(org.springframework.context.annotation.ConditionContext context, String endpointName)org.springframework.boot.autoconfigure.condition.ConditionOutcomegetMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
Constructor Detail
OnEndpointElementCondition
protected OnEndpointElementCondition(String prefix, Class<? extends Annotation> annotationType)
Method Detail
getMatchOutcome
public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
- Specified by:
getMatchOutcomein classorg.springframework.boot.autoconfigure.condition.SpringBootCondition
getEndpointOutcome
protected org.springframework.boot.autoconfigure.condition.ConditionOutcome getEndpointOutcome(org.springframework.context.annotation.ConditionContext context, String endpointName)
getDefaultEndpointsOutcome
protected org.springframework.boot.autoconfigure.condition.ConditionOutcome getDefaultEndpointsOutcome(org.springframework.context.annotation.ConditionContext context)