public abstract class OnEndpointElementCondition extends SpringBootCondition
defaults
名を使用してグローバルに無効にすることも、要素の名前を使用して個別に無効にすることもできます。修飾子 | コンストラクターと説明 |
---|---|
protected | OnEndpointElementCondition(StringSE prefix, ClassSE<? extends AnnotationSE> annotationType) |
修飾子と型 | メソッドと説明 |
---|---|
protected ConditionOutcome | getDefaultEndpointsOutcome(ConditionContext context) 使用すべきではありません。 2.6.0 以降、2.8.0 で削除され getDefaultOutcome(ConditionContext, AnnotationAttributes) を推奨 |
protected ConditionOutcome | getDefaultOutcome(ConditionContext context, AnnotationAttributes annotationAttributes) プロパティが設定されていない場合に使用する必要があるデフォルトの結果を返します。 |
protected ConditionOutcome | getEndpointOutcome(ConditionContext context, StringSE endpointName) |
ConditionOutcome | getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) 適切なログ出力とともに、一致の結果を決定します。 |
anyMatches, logOutcome, matches, matches
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected OnEndpointElementCondition(StringSE prefix, ClassSE<? extends AnnotationSE> annotationType)
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
SpringBootCondition
SpringBootCondition
の getMatchOutcome
context
- 条件コンテキスト metadata
- アノテーションメタデータ protected ConditionOutcome getEndpointOutcome(ConditionContext context, StringSE endpointName)
protected ConditionOutcome getDefaultOutcome(ConditionContext context, AnnotationAttributes annotationAttributes)
<prefix>.defaults.enabled
プロパティを使用し、true
であるか、構成されていないかを照合します。context
- 条件コンテキスト annotationAttributes
- アノテーション属性 @DeprecatedSE protected ConditionOutcome getDefaultEndpointsOutcome(ConditionContext context)
getDefaultOutcome(ConditionContext, AnnotationAttributes)
を推奨 context
- 条件コンテキスト