クラス 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
ネストされたクラスの概要
ネストされたクラスコンストラクター概要
コンストラクター修飾子コンストラクター説明<T>SessionAwareMethodInterceptor(ClientSession session, T target, ClassSE<?> clientType, ClassSE<? extends ClientSession> sessionType, ClassSE<D> databaseType, SessionAwareMethodInterceptor.ClientSessionOperator<D> databaseDecorator, ClassSE<C> collectionType, SessionAwareMethodInterceptor.ClientSessionOperator<C> collectionDecorator) 指定されたターゲットに対して新しい SessionAwareMethodInterceptor を作成します。方法の概要
コンストラクターの詳細
SessionAwareMethodInterceptor
public <T> SessionAwareMethodInterceptor(ClientSession session, T target, ClassSE<?> clientType, ClassSE<? extends ClientSession> sessionType, ClassSE<D> databaseType, SessionAwareMethodInterceptor.ClientSessionOperator<D> databaseDecorator, ClassSE<C> collectionType, SessionAwareMethodInterceptor.ClientSessionOperator<C> collectionDecorator) 指定されたターゲットに対して新しい SessionAwareMethodInterceptor を作成します。- 型パラメーター:
T- ターゲットオブジェクト型。- パラメーター:
session- 呼び出し時に使用するClientSession。target- 元のターゲットオブジェクト。clientType- the MongoDB cluster/client type (e.g.MongoCluster).sessionType-ClientSession型。databaseType- MongoDB データベースの種類。databaseDecorator- 命令型 / リアクティブ型MongoDatabaseのプロキシを作成するために使用されるSessionAwareMethodInterceptor.ClientSessionOperator。collectionType- MongoDB コレクション型。collectionDecorator- 命令型 / リアクティブ型MongoCollectionのプロキシを作成するために使用されるSessionAwareMethodInterceptor.ClientSessionOperator。
方法の詳細
invoke
- 次で指定:
- インターフェース
MethodInterceptor内のinvoke - 例外:
ThrowableSE
decorate