クラス 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
コンストラクターの概要
コンストラクター修飾子コンストラクター説明protected
OnEndpointElementCondition
(StringSE prefix, ClassSE<? extends AnnotationSE> annotationType) メソッドのサマリー
修飾子と型メソッド説明protected ConditionOutcome
getDefaultOutcome
(ConditionContext context, AnnotationAttributes annotationAttributes) プロパティが設定されていない場合に使用する必要があるデフォルトの結果を返します。protected ConditionOutcome
getEndpointOutcome
(ConditionContext context, StringSE endpointName) getMatchOutcome
(ConditionContext context, AnnotatedTypeMetadata metadata) 適切なログ出力とともに、一致の結果を決定します。クラス org.springframework.boot.autoconfigure.condition.SpringBootCondition から継承されたメソッド
anyMatches, logOutcome, matches, matches
コンストラクターの詳細
OnEndpointElementCondition
protected OnEndpointElementCondition(StringSE prefix, ClassSE<? extends AnnotationSE> annotationType)
メソッドの詳細
getMatchOutcome
クラスからコピーされた説明:SpringBootCondition
適切なログ出力とともに、一致の結果を決定します。- 次で指定:
- クラス
SpringBootCondition
のgetMatchOutcome
- パラメーター:
context
- 条件コンテキストmetadata
- アノテーションメタデータ- 戻り値:
- 状態の結果
getEndpointOutcome
getDefaultOutcome
protected ConditionOutcome getDefaultOutcome(ConditionContext context, AnnotationAttributes annotationAttributes) プロパティが設定されていない場合に使用する必要があるデフォルトの結果を返します。デフォルトでは、このメソッドは<prefix>.defaults.enabled
プロパティを使用し、true
であるか、構成されていないかを照合します。- パラメーター:
context
- 条件コンテキストannotationAttributes
- アノテーション属性- 戻り値:
- デフォルトの結果
- 導入:
- 2.6.0