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(org.springframework.context.annotation.ConditionContext context) |
protected ConditionOutcome |
getEndpointOutcome(org.springframework.context.annotation.ConditionContext context,
String endpointName) |
ConditionOutcome |
getMatchOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.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(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
SpringBootCondition
getMatchOutcome
in class SpringBootCondition
context
- the condition contextmetadata
- the annotation metadataprotected ConditionOutcome getEndpointOutcome(org.springframework.context.annotation.ConditionContext context, String endpointName)
protected ConditionOutcome getDefaultEndpointsOutcome(org.springframework.context.annotation.ConditionContext context)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.