public class ResourceReaderRepositoryPopulator extends Object implements RepositoryPopulator, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
ResourceReaderRepositoryPopulator(ResourceReader reader)
Creates a new
ResourceReaderRepositoryPopulator using the given ResourceReader. |
ResourceReaderRepositoryPopulator(ResourceReader reader,
ClassLoader classLoader)
|
| Modifier and Type | Method and Description |
|---|---|
void |
populate(Repositories repositories)
Populates the given
Repositories. |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
void |
setResourceLocation(String location)
Configures the location of the
Resources to be used to initialize the repositories. |
void |
setResources(org.springframework.core.io.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 reader, 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(org.springframework.core.io.Resource... resources)
Resources to be used to initialize the repositories.resources - public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic void populate(Repositories repositories)
RepositoryPopulatorRepositories.populate in interface RepositoryPopulatorCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.