C
- match メソッドが実際に使用する必要があるコンテキストの型。ApplicationContext
または existing bean
のクラスを指定できます。public abstract class ApplicationContextServerWebExchangeMatcher<C> extends ObjectSE implements ServerWebExchangeMatcher
ApplicationContext
バックアップ ServerWebExchangeMatcher
。ApplicationContext
を直接操作して、通常の方法でオートワイヤーされた既存の Bean または create a new bean
を入手できます。ServerWebExchangeMatcher.MatchResult
コンストラクターと説明 |
---|
ApplicationContextServerWebExchangeMatcher(ClassSE<? extends C> contextClass) |
修飾子と型 | メソッドと説明 |
---|---|
protected SupplierSE<C> | getContext(ServerWebExchange exchange) |
protected boolean | ignoreApplicationContext(ApplicationContext applicationContext) ApplicationContext を無視し、マッチングに使用しない場合に返します。 |
protected void | initialized(SupplierSE<C> context) コンテキストが初期化されると呼び出されます。 |
reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> | matches(ServerWebExchange exchange) |
protected abstract reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> | matches(ServerWebExchange exchange, SupplierSE<C> context) 戦略によって実装されたルールが提供された取引所と一致するかどうかを決定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public final reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange)
ServerWebExchangeMatcher
の matches
protected abstract reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange, SupplierSE<C> context)
exchange
- ソース交換 context
- 初期化されたコンテキストのサプライヤー (例外をスローすることがあります)protected boolean ignoreApplicationContext(ApplicationContext applicationContext)
ApplicationContext
を無視し、マッチングに使用しない場合に返します。このメソッドが true
を返す場合、コンテキストは使用されず、matches
メソッドは false
を返します。applicationContext
- 候補アプリケーションコンテキスト protected SupplierSE<C> getContext(ServerWebExchange exchange)
protected void initialized(SupplierSE<C> context)
context
- 初期化されたコンテキストのサプライヤー (例外をスローすることがあります)