クラス ResourceCondition
java.lang.ObjectSE
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.condition.ResourceCondition
- 実装されているすべてのインターフェース:
Condition
- 既知の直属サブクラス
HazelcastConfigResourceCondition
SpringBootCondition は、構成可能なプロパティとオプションのデフォルトの場所を使用してリソースが見つかるかどうかを確認するために使用されていました。- 導入:
- 1.3.0
- 作成者:
- Stephane Nicoll, Phillip Webb, Madhura Bhave
コンストラクターの概要
コンストラクター修飾子コンストラクター説明protectedResourceCondition(StringSE name, StringSE property, StringSE... resourceLocations) 新しい条件を作成します。メソッドのサマリー
修飾子と型メソッド説明getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) 適切なログ出力とともに、一致の結果を決定します。protected ConditionOutcomegetResourceOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) デフォルトのリソースロケーションの 1 つが実際に存在するかどうかを確認します。protected final ConditionMessage.Builderクラス SpringBootCondition から継承されたメソッド
anyMatches, logOutcome, matches, matches
コンストラクターの詳細
ResourceCondition
メソッドの詳細
getMatchOutcome
クラスからコピーされた説明:SpringBootCondition適切なログ出力とともに、一致の結果を決定します。- 次で指定:
- クラス
SpringBootConditionのgetMatchOutcome - パラメーター:
context- 条件コンテキストmetadata- アノテーションメタデータ- 戻り値:
- 状態の結果
getResourceOutcome
protected ConditionOutcome getResourceOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) デフォルトのリソースロケーションの 1 つが実際に存在するかどうかを確認します。- パラメーター:
context- 条件コンテキストmetadata- アノテーションメタデータ- 戻り値:
- 状態の結果
startConditionMessage