public abstract class OnEndpointElementCondition
extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
defaults name or individually via the name of the element.| Modifier | Constructor and Description |
|---|---|
protected |
OnEndpointElementCondition(java.lang.String prefix,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.boot.autoconfigure.condition.ConditionOutcome |
getDefaultEndpointsOutcome(org.springframework.context.annotation.ConditionContext context)
Deprecated.
since 2.6.0 for removal in 2.8.0 in favor of
getDefaultOutcome(ConditionContext, AnnotationAttributes) |
protected org.springframework.boot.autoconfigure.condition.ConditionOutcome |
getDefaultOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.annotation.AnnotationAttributes annotationAttributes)
Return the default outcome that should be used if property is not set.
|
protected org.springframework.boot.autoconfigure.condition.ConditionOutcome |
getEndpointOutcome(org.springframework.context.annotation.ConditionContext context,
java.lang.String endpointName) |
org.springframework.boot.autoconfigure.condition.ConditionOutcome |
getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata) |
protected OnEndpointElementCondition(java.lang.String prefix,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
getMatchOutcome in class org.springframework.boot.autoconfigure.condition.SpringBootConditionprotected org.springframework.boot.autoconfigure.condition.ConditionOutcome getEndpointOutcome(org.springframework.context.annotation.ConditionContext context,
java.lang.String endpointName)
protected org.springframework.boot.autoconfigure.condition.ConditionOutcome getDefaultOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.annotation.AnnotationAttributes annotationAttributes)
<prefix>.defaults.enabled property, matching if it
is true or if it is not configured.context - the condition contextannotationAttributes - the annotation attributes@Deprecated protected org.springframework.boot.autoconfigure.condition.ConditionOutcome getDefaultEndpointsOutcome(org.springframework.context.annotation.ConditionContext context)
getDefaultOutcome(ConditionContext, AnnotationAttributes)context - the condition context