public class ResourceReaderRepositoryPopulator extends Object implements RepositoryPopulator, 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(ApplicationEventPublisher publisher) |
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 reader, @Nullable ClassLoader classLoader)
reader - must not be null.classLoader - can be null.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 setApplicationEventPublisher(ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwarepublic void populate(Repositories repositories)
RepositoryPopulatorRepositories.populate in interface RepositoryPopulatorrepositories - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.