クラス SessionAwareMethodInterceptor<D,C>

java.lang.ObjectSE
org.springframework.data.mongodb.SessionAwareMethodInterceptor<D,C>
型パラメーター:
D - 実際の Mongo データベースの型。
C - 実際の Mongo コレクションの型。
実装済みのインターフェース一覧:
Advice, Interceptor, MethodInterceptor

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