public abstract class AbstractRepositoryPopulatorFactoryBean extends AbstractFactoryBean<ResourceReaderRepositoryPopulator> implements ApplicationListener<ContextRefreshedEvent>, ApplicationContextAware
FactoryBeans creating ResourceReaderRepositoryPopulators. Sub-classes have to provide
a ResourceReader to hand into the RepositoryPopulator instance created.loggerOBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
AbstractRepositoryPopulatorFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected ResourceReaderRepositoryPopulator |
createInstance() |
Class<?> |
getObjectType() |
protected abstract ResourceReader |
getResourceReader() |
void |
onApplicationEvent(ContextRefreshedEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setResources(Resource[] resources)
Configures the
Resources to be used to load objects from and initialize the repositories eventually. |
destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforPayloadpublic AbstractRepositoryPopulatorFactoryBean()
public void setResources(Resource[] resources)
Resources to be used to load objects from and initialize the repositories eventually.resources - must not be null.public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext in interface ApplicationContextAware@Nonnull public Class<?> getObjectType()
getObjectType in interface FactoryBean<ResourceReaderRepositoryPopulator>getObjectType in class AbstractFactoryBean<ResourceReaderRepositoryPopulator>protected ResourceReaderRepositoryPopulator createInstance()
createInstance in class AbstractFactoryBean<ResourceReaderRepositoryPopulator>public void onApplicationEvent(ContextRefreshedEvent event)
onApplicationEvent in interface ApplicationListener<ContextRefreshedEvent>protected abstract ResourceReader getResourceReader()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractFactoryBean<ResourceReaderRepositoryPopulator>ExceptionCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.