クラス SessionAwareMethodInterceptor<D,C>
java.lang.ObjectSE
org.springframework.data.mongodb.SessionAwareMethodInterceptor<D,C>
- 型パラメーター:
D- 実際の Mongo データベースの型。C- 実際の Mongo コレクションの型。
- 実装されているすべてのインターフェース:
Advice、Interceptor、MethodInterceptor
MethodInterceptor 実装は、最初の引数として ClientSession を持つ代替ターゲットメソッドを検索して呼び出します。これにより、既存のコードベースとのシームレスな統合が可能になります。MethodInterceptor は、MongoCollection 上のメソッドを認識しており、そのメソッドは、MongoCollection.withWriteConcern(WriteConcern) のように自身の新しいインスタンスを返す可能性があり、まだプロキシされていない場合はそれらを装飾します。- 導入:
- 2.1
- 作成者:
- Christoph Strobl, Mark Paluch
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static interface同じ型の 2 つのオペランドに対する演算を表し、ClientSessionを受け入れるオペランドと同じ型の結果を生成します。コンストラクターの概要
コンストラクターコンストラクター説明SessionAwareMethodInterceptor(com.mongodb.session.ClientSession session, T target, ClassSE<? extends com.mongodb.session.ClientSession> sessionType, ClassSE<D> databaseType, SessionAwareMethodInterceptor.ClientSessionOperator<D> databaseDecorator, ClassSE<C> collectionType, SessionAwareMethodInterceptor.ClientSessionOperator<C> collectionDecorator) 指定されたターゲットに対して新しい SessionAwareMethodInterceptor を作成します。メソッドのサマリー
コンストラクターの詳細
SessionAwareMethodInterceptor
public SessionAwareMethodInterceptor(com.mongodb.session.ClientSession session, T target, ClassSE<? extends com.mongodb.session.ClientSession> sessionType, ClassSE<D> databaseType, SessionAwareMethodInterceptor.ClientSessionOperator<D> databaseDecorator, ClassSE<C> collectionType, SessionAwareMethodInterceptor.ClientSessionOperator<C> collectionDecorator) 指定されたターゲットに対して新しい SessionAwareMethodInterceptor を作成します。- 型パラメーター:
T- ターゲットオブジェクト型。- パラメーター:
session- 呼び出し時に使用されるClientSession。target- 元のターゲットオブジェクト。databaseType- MongoDB データベース型databaseDecorator- 命令型 / リアクティブ型MongoDatabaseのプロキシを作成するために使用されるSessionAwareMethodInterceptor.ClientSessionOperator。collectionType- MongoDB コレクション型。collectionDecorator- 命令型 / リアクティブ型MongoCollectionのプロキシを作成するために使用されるSessionAwareMethodInterceptor.ClientSessionOperator。
メソッドの詳細
invoke
- 次で指定:
- インターフェース
MethodInterceptorのinvoke - 例外:
ThrowableSE
decorate