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
Resource s to be used to initialize the repositories. |
void |
setResources(Resource... resources)
Configures the
Resource s 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
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 setApplicationEventPublisher(ApplicationEventPublisher publisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
public void populate(Repositories repositories)
RepositoryPopulator
Repositories
.populate
in interface RepositoryPopulator
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.