|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Resource s to be used to initialize the repositories. |
void |
setResources(Resource... resources)
Configures the Resource s 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
Resource
s to be used to initialize the repositories.
location
- must not be null or empty.
IOException
public void setResources(Resource... resources)
Resource
s to be used to initialize the repositories.
resources
- public void populate(Repositories repositories)
RepositoryPopulator
Repositories
.
populate
in interface RepositoryPopulator
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |