クラス SessionAwareMethodInterceptor<D,C>

java.lang.ObjectSE
org.springframework.data.mongodb.SessionAwareMethodInterceptor<D,C>
型パラメーター:
D - 実際の Mongo データベースの型。
C - 実際の Mongo コレクションの型。
実装されているすべてのインターフェース:
AdviceInterceptorMethodInterceptor

public class SessionAwareMethodInterceptor<D,C> extends ObjectSE implements MethodInterceptor
MethodInterceptor 実装は、最初の引数として ClientSession を持つ代替ターゲットメソッドを検索して呼び出します。これにより、既存のコードベースとのシームレスな統合が可能になります。
MethodInterceptor は、MongoCollection 上のメソッドを認識しており、そのメソッドは、MongoCollection.withWriteConcern(WriteConcern) のように自身の新しいインスタンスを返す可能性があり、まだプロキシされていない場合はそれらを装飾します。
導入:
2.1
作成者:
Christoph Strobl, Mark Paluch