クラス ResourceReaderRepositoryPopulator
java.lang.ObjectSE
org.springframework.data.repository.init.ResourceReaderRepositoryPopulator
- 実装されたすべてのインターフェース:
Aware
、ApplicationEventPublisherAware
、RepositoryPopulator
public class ResourceReaderRepositoryPopulator
extends ObjectSE
implements RepositoryPopulator, ApplicationEventPublisherAware
- 導入:
- 1.4
- 作成者:
- Oliver Gierke, Christoph Strobl
コンストラクターのサマリー
コンストラクター説明指定されたResourceReader
を使用して新しいResourceReaderRepositoryPopulator
を作成します。ResourceReaderRepositoryPopulator
(ResourceReader reader, ClassLoaderSE classLoader) メソッドのサマリー
修飾子と型メソッド説明void
populate
(Repositories repositories) 指定されたRepositories
を生成します。void
void
setResourceLocation
(StringSE location) リポジトリの初期化に使用されるResource
の場所を構成します。void
setResources
(Resource... resources) リポジトリの初期化に使用されるResource
を構成します。
コンストラクターの詳細
ResourceReaderRepositoryPopulator
指定されたResourceReader
を使用して新しいResourceReaderRepositoryPopulator
を作成します。- パラメーター:
reader
- null であってはなりません。
ResourceReaderRepositoryPopulator
public ResourceReaderRepositoryPopulator(ResourceReader reader, @Nullable ClassLoaderSE classLoader) - パラメーター:
reader
- null であってはなりません。classLoader
- null でもかまいません。
メソッドの詳細
setResourceLocation
リポジトリの初期化に使用されるResource
の場所を構成します。- パラメーター:
location
- null または空であってはなりません。- 例外:
IOExceptionSE
setResources
リポジトリの初期化に使用されるResource
を構成します。- パラメーター:
resources
-
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAware
のsetApplicationEventPublisher
populate
インターフェースからコピーされた説明:RepositoryPopulator
指定されたRepositories
を生成します。- 次で指定:
- インターフェース
RepositoryPopulator
のpopulate
- パラメーター:
repositories
- null であってはなりません。