クラス CustomRepositoryImplementationDetector
java.lang.ObjectSE
org.springframework.data.repository.config.CustomRepositoryImplementationDetector
Repository
インスタンスのカスタム実装を検出します。構築時に ImplementationDetectionConfiguration
で構成されている場合、必要なコンポーネントスキャンは最初のアクセスで実行され、キャッシュされ、その結果は、指定された ImplementationDetectionConfiguration
に従って以降の実装ルックアップごとにフィルタリングされます。最初に何も指定されていない場合、detectCustomImplementation(ImplementationLookupConfiguration)
を呼び出すたびに新しいコンポーネントスキャンが発行されます。- 作成者:
- Oliver Gierke, Mark Paluch, Christoph Strobl, Peter Rietzler, Jens Schauder, Mark Paluch
コンストラクターのサマリー
コンストラクターコンストラクター説明CustomRepositoryImplementationDetector
(Environment environment, ResourceLoader resourceLoader) CustomRepositoryImplementationDetector
(Environment environment, ResourceLoader resourceLoader, ImplementationDetectionConfiguration configuration) メソッドのサマリー
修飾子と型メソッド説明クラスパススキャンにより、リポジトリ Bean のカスタム実装の検出を試みます。
コンストラクターの詳細
CustomRepositoryImplementationDetector
public CustomRepositoryImplementationDetector(Environment environment, ResourceLoader resourceLoader, ImplementationDetectionConfiguration configuration) 指定されたEnvironment
、ResourceLoader
、ImplementationDetectionConfiguration
を使用して新しいCustomRepositoryImplementationDetector
を作成します。後者は、detectCustomImplementation(ImplementationLookupConfiguration)
への後続のすべての呼び出しで使用およびフィルタリングされる実装候補の 1 回限りのコンポーネントスキャンに登録されます。- パラメーター:
environment
- null であってはなりません。resourceLoader
- null であってはなりません。configuration
- null であってはなりません。
CustomRepositoryImplementationDetector
public CustomRepositoryImplementationDetector(Environment environment, ResourceLoader resourceLoader) 指定されたEnvironment
およびResourceLoader
で新しいCustomRepositoryImplementationDetector
を作成します。detectCustomImplementation(ImplementationLookupConfiguration)
の呼び出しは、スキャンを発行します- パラメーター:
environment
- null であってはなりません。resourceLoader
- null であってはなりません。
メソッドの詳細
detectCustomImplementation
public OptionalSE<AbstractBeanDefinition> detectCustomImplementation(ImplementationLookupConfiguration lookup) クラスパススキャンにより、リポジトリ Bean のカスタム実装の検出を試みます。- パラメーター:
lookup
- null であってはなりません。- 戻り値:
- カスタム実装の
AbstractBeanDefinition
。見つからない場合は null