public abstract class AbstractRepositoryPopulatorFactoryBean extends AbstractFactoryBean<ResourceReaderRepositoryPopulator> implements ApplicationListener<ContextRefreshedEvent>
logger
Constructor and Description |
---|
AbstractRepositoryPopulatorFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected ResourceReaderRepositoryPopulator |
createInstance() |
Class<?> |
getObjectType() |
protected abstract ResourceReader |
getResourceReader() |
void |
onApplicationEvent(ContextRefreshedEvent event) |
void |
setResources(Resource[] resources)
Configures the
Resource s to be used to load objects from and initialize the repositories eventually. |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public AbstractRepositoryPopulatorFactoryBean()
public void setResources(Resource[] resources)
Resource
s to be used to load objects from and initialize the repositories eventually.resources
- the resources to setpublic Class<?> getObjectType()
getObjectType
in interface FactoryBean<ResourceReaderRepositoryPopulator>
getObjectType
in class AbstractFactoryBean<ResourceReaderRepositoryPopulator>
protected ResourceReaderRepositoryPopulator createInstance() throws Exception
createInstance
in class AbstractFactoryBean<ResourceReaderRepositoryPopulator>
Exception
public void onApplicationEvent(ContextRefreshedEvent event)
onApplicationEvent
in interface ApplicationListener<ContextRefreshedEvent>
protected abstract ResourceReader getResourceReader()
Copyright © 2012. All Rights Reserved.