クラス CdiRepositoryExtensionSupport
java.lang.ObjectSE
org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport
- 実装されたすべてのインターフェース:
jakarta.enterprise.inject.spi.Extension
public abstract class CdiRepositoryExtensionSupport
extends ObjectSE
implements jakarta.enterprise.inject.spi.Extension
Spring Data リポジトリのインスタンスを作成する
Extension
実装の基本クラス。- 作成者:
- Dirk Mahler, Oliver Gierke, Mark Paluch, Christoph Strobl, Xeno Amess
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected CustomRepositoryImplementationDetector
protected CdiRepositoryContext
protected IterableSE<Map.EntrySE<ClassSE<?>,
SetSE<AnnotationSE>>> すべてのリポジトリ型とその修飾子へのアクセスを提供します。protected <X> void
processAnnotatedType
(jakarta.enterprise.inject.spi.ProcessAnnotatedType<X> processAnnotatedType) Spring Data リポジトリ型をチェックし、後で Bean 型として登録するためにrepositoryTypes
に格納するオブザーバーの実装。protected void
registerBean
(CdiRepositoryBean<?> bean) 指定されたCdiRepositoryBean
を登録して、インフラストラクチャによるさらに一般的な処理を行います。
コンストラクターの詳細
CdiRepositoryExtensionSupport
protected CdiRepositoryExtensionSupport()
メソッドの詳細
processAnnotatedType
protected <X> void processAnnotatedType(@Observes jakarta.enterprise.inject.spi.ProcessAnnotatedType<X> processAnnotatedType) Spring Data リポジトリ型をチェックし、後で Bean 型として登録するためにrepositoryTypes
に格納するオブザーバーの実装。- 型パラメーター:
X
- 型。- パラメーター:
processAnnotatedType
- CDI で定義されているアノテーション付き型。
getRepositoryTypes
すべてのリポジトリ型とその修飾子へのアクセスを提供します。- 戻り値:
registerBean
指定されたCdiRepositoryBean
を登録して、インフラストラクチャによるさらに一般的な処理を行います。特に、これにより、リポジトリがそのようにマークされている場合、リポジトリが先行してインスタンス化されます。- パラメーター:
bean
- null であってはなりません。- 関連事項:
afterDeploymentValidation(AfterDeploymentValidation, BeanManager)
getCustomImplementationDetector
- 戻り値:
- カスタム実装をスキャンする
CustomRepositoryImplementationDetector
getRepositoryContext
- 戻り値:
- CDI 固有のクラスローダーとフラグメントスキャンをカプセル化する
CdiRepositoryContext
。 - 導入:
- 2.1