|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.repository.init.ResourceReaderRepositoryPopulator
public class ResourceReaderRepositoryPopulator
A RepositoryPopulator using a ResourceReader to read objects from the configured Resource
s.
| Constructor Summary | |
|---|---|
ResourceReaderRepositoryPopulator(ResourceReader reader)
Creates a new ResourceReaderRepositoryPopulator using the given ResourceReader. |
|
ResourceReaderRepositoryPopulator(ResourceReader resourceReader,
ClassLoader classLoader)
Createsa a new ResourceReaderRepositoryPopulator using the given ResourceReader and
ClassLoader. |
|
| Method Summary | |
|---|---|
void |
populate(Repositories repositories)
Populates the given Repositories. |
void |
setResourceLocation(String location)
Configures the location of the Resources to be used to initialize the repositories. |
void |
setResources(Resource... resources)
Configures the Resources to be used to initialize the repositories. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceReaderRepositoryPopulator(ResourceReader reader)
ResourceReaderRepositoryPopulator using the given ResourceReader.
reader - must not be null.
public ResourceReaderRepositoryPopulator(ResourceReader resourceReader,
ClassLoader classLoader)
ResourceReaderRepositoryPopulator using the given ResourceReader and
ClassLoader.
reader - must not be null.classLoader - | Method Detail |
|---|
public void setResourceLocation(String location)
throws IOException
Resources to be used to initialize the repositories.
location - must not be null or empty.
IOExceptionpublic void setResources(Resource... resources)
Resources to be used to initialize the repositories.
resources - public void populate(Repositories repositories)
RepositoryPopulatorRepositories.
populate in interface RepositoryPopulator
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||