クラス 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
  • コンストラクターの詳細

    • CdiRepositoryExtensionSupport

      protected CdiRepositoryExtensionSupport()
  • メソッドの詳細

    • processAnnotatedType

      protected <X> void processAnnotatedType(@Observes jakarta.enterprise.inject.spi.ProcessAnnotatedType<X> processAnnotatedType)
      Spring Data リポジトリ型をチェックし、後で Bean 型として登録するために repositoryTypes に格納するオブザーバーの実装。
      型パラメーター:
      X - 型。
      パラメーター:
      processAnnotatedType - CDI で定義されているアノテーション付き型。
    • getRepositoryTypes

      protected IterableSE<Map.EntrySE<ClassSE<?>,SetSE<AnnotationSE>>> getRepositoryTypes()
      すべてのリポジトリ型とその修飾子へのアクセスを提供します。
      戻り値:
    • registerBean

      protected void registerBean(CdiRepositoryBean<?> bean)
      指定された CdiRepositoryBean を登録して、インフラストラクチャによるさらに一般的な処理を行います。特に、これにより、リポジトリがそのようにマークされている場合、リポジトリが先行してインスタンス化されます。
      パラメーター:
      bean - null であってはなりません。
      関連事項:
      • afterDeploymentValidation(AfterDeploymentValidation, BeanManager)
    • getCustomImplementationDetector

      protected CustomRepositoryImplementationDetector getCustomImplementationDetector()
      戻り値:
      カスタム実装をスキャンする CustomRepositoryImplementationDetector
    • getRepositoryContext

      protected CdiRepositoryContext getRepositoryContext()
      戻り値:
      CDI 固有のクラスローダーとフラグメントスキャンをカプセル化する CdiRepositoryContext
      導入:
      2.1