public abstract class OnEndpointElementCondition extends SpringBootCondition
defaults
name or individually via the name of the element.Modifier | Constructor and Description |
---|---|
protected |
OnEndpointElementCondition(String prefix,
Class<? extends Annotation> annotationType) |
Modifier and Type | Method and Description |
---|---|
protected ConditionOutcome |
getDefaultEndpointsOutcome(ConditionContext context)
Deprecated.
since 2.6.0 for removal in 2.8.0 in favor of
getDefaultOutcome(ConditionContext, AnnotationAttributes) |
protected ConditionOutcome |
getDefaultOutcome(ConditionContext context,
AnnotationAttributes annotationAttributes)
Return the default outcome that should be used if property is not set.
|
protected ConditionOutcome |
getEndpointOutcome(ConditionContext context,
String endpointName) |
ConditionOutcome |
getMatchOutcome(ConditionContext context,
AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, logOutcome, matches, matches
protected OnEndpointElementCondition(String prefix, Class<? extends Annotation> annotationType)
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
SpringBootCondition
getMatchOutcome
in class SpringBootCondition
context
- the condition contextmetadata
- the annotation metadataprotected ConditionOutcome getEndpointOutcome(ConditionContext context, String endpointName)
protected ConditionOutcome getDefaultOutcome(ConditionContext context, 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 ConditionOutcome getDefaultEndpointsOutcome(ConditionContext context)
getDefaultOutcome(ConditionContext, AnnotationAttributes)
context
- the condition context