public class ResourceReaderRepositoryPopulator extends Object implements RepositoryPopulator
| Constructor and Description |
|---|
ResourceReaderRepositoryPopulator(ResourceReader reader)
Creates a new
ResourceReaderRepositoryPopulator using the given ResourceReader. |
ResourceReaderRepositoryPopulator(ResourceReader resourceReader,
ClassLoader classLoader)
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public ResourceReaderRepositoryPopulator(ResourceReader reader)
ResourceReaderRepositoryPopulator using the given ResourceReader.reader - must not be null.public ResourceReaderRepositoryPopulator(ResourceReader resourceReader, ClassLoader classLoader)
reader - must not be null.classLoader - 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 RepositoryPopulatorCopyright © 2012. All Rights Reserved.