public abstract class AbstractRepositoryPopulatorFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<ResourceReaderRepositoryPopulator> implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
FactoryBeans creating ResourceReaderRepositoryPopulators. Sub-classes have to provide
a ResourceReader to hand into the RepositoryPopulator instance created.| Constructor and Description |
|---|
AbstractRepositoryPopulatorFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected ResourceReaderRepositoryPopulator |
createInstance() |
Class<?> |
getObjectType() |
protected abstract ResourceReader |
getResourceReader() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setResources(org.springframework.core.io.Resource[] resources)
Configures the
Resources to be used to load objects from and initialize the repositories eventually. |
public AbstractRepositoryPopulatorFactoryBean()
public void setResources(org.springframework.core.io.Resource[] resources)
Resources to be used to load objects from and initialize the repositories eventually.resources - must not be null.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ResourceReaderRepositoryPopulator>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<ResourceReaderRepositoryPopulator>protected ResourceReaderRepositoryPopulator createInstance()
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<ResourceReaderRepositoryPopulator>public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>protected abstract ResourceReader getResourceReader()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.