クラス OnEndpointElementCondition
java.lang.ObjectSE
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.actuate.autoconfigure.OnEndpointElementCondition
- 実装されているすべてのインターフェース:
Condition
ベースエンドポイント要素の条件。要素は、
defaults 名を使用してグローバルに無効にすることも、要素の名前を使用して個別に無効にすることもできます。- 導入:
- 2.0.0
- 作成者:
- Stephane Nicoll, Madhura Bhave
コンストラクターの概要
コンストラクター修飾子コンストラクター説明protectedOnEndpointElementCondition(StringSE prefix, ClassSE<? extends AnnotationSE> annotationType) メソッドのサマリー
修飾子と型メソッド説明protected ConditionOutcomegetDefaultOutcome(ConditionContext context, AnnotationAttributes annotationAttributes) プロパティが設定されていない場合に使用する必要があるデフォルトの結果を返します。protected @Nullable ConditionOutcomegetEndpointOutcome(ConditionContext context, StringSE endpointName) getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) 適切なログ出力とともに、一致の結果を決定します。クラス SpringBootCondition から継承されたメソッド
anyMatches, logOutcome, matches, matches
コンストラクターの詳細
OnEndpointElementCondition
protected OnEndpointElementCondition(StringSE prefix, ClassSE<? extends AnnotationSE> annotationType)
メソッドの詳細
getMatchOutcome
クラスからコピーされた説明:SpringBootCondition適切なログ出力とともに、一致の結果を決定します。- 次で指定:
- クラス
SpringBootConditionのgetMatchOutcome - パラメーター:
context- 条件コンテキストmetadata- アノテーションメタデータ- 戻り値:
- 状態の結果
getEndpointOutcome
protected @Nullable ConditionOutcome getEndpointOutcome(ConditionContext context, StringSE endpointName) getDefaultOutcome
protected ConditionOutcome getDefaultOutcome(ConditionContext context, AnnotationAttributes annotationAttributes) プロパティが設定されていない場合に使用する必要があるデフォルトの結果を返します。デフォルトでは、このメソッドは<prefix>.defaults.enabledプロパティを使用し、trueであるか、構成されていないかを照合します。- パラメーター:
context- 条件コンテキストannotationAttributes- アノテーション属性- 戻り値:
- デフォルトの結果
- 導入:
- 2.6.0