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) |
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 getDefaultEndpointsOutcome(ConditionContext context)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.