public class CustomRepositoryImplementationDetector extends ObjectSE
Repository
インスタンスのカスタム実装を検出します。構築時に ImplementationDetectionConfiguration
で構成されている場合、必要なコンポーネントスキャンは最初のアクセスで実行され、キャッシュされ、その結果は、指定された ImplementationDetectionConfiguration
に従って以降の実装ルックアップごとにフィルタリングされます。最初に何も指定されていない場合、detectCustomImplementation(ImplementationLookupConfiguration)
を呼び出すたびに新しいコンポーネントスキャンが発行されます。コンストラクターと説明 |
---|
CustomRepositoryImplementationDetector(Environment environment, ResourceLoader resourceLoader) |
CustomRepositoryImplementationDetector(Environment environment, ResourceLoader resourceLoader, ImplementationDetectionConfiguration configuration) |
修飾子と型 | メソッドと説明 |
---|---|
OptionalSE<AbstractBeanDefinition> | detectCustomImplementation(ImplementationLookupConfiguration lookup) クラスパススキャンにより、リポジトリ Bean のカスタム実装の検出を試みます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public CustomRepositoryImplementationDetector(Environment environment, ResourceLoader resourceLoader, ImplementationDetectionConfiguration configuration)
Environment
、ResourceLoader
、ImplementationDetectionConfiguration
を使用して新しい CustomRepositoryImplementationDetector
を作成します。後者は、detectCustomImplementation(ImplementationLookupConfiguration)
への後続のすべての呼び出しで使用およびフィルタリングされる実装候補の 1 回限りのコンポーネントスキャンに登録されます。environment
- null であってはなりません。resourceLoader
- null であってはなりません。configuration
- null であってはなりません。public CustomRepositoryImplementationDetector(Environment environment, ResourceLoader resourceLoader)
Environment
および ResourceLoader
で新しい CustomRepositoryImplementationDetector
を作成します。detectCustomImplementation(ImplementationLookupConfiguration)
の呼び出しは、スキャンを発行します environment
- null であってはなりません。resourceLoader
- null であってはなりません。public OptionalSE<AbstractBeanDefinition> detectCustomImplementation(ImplementationLookupConfiguration lookup)
lookup
- null であってはなりません。AbstractBeanDefinition
。見つからない場合は nullCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.