Class AbstractRepositoryPopulatorFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<ResourceReaderRepositoryPopulator>
org.springframework.data.repository.init.AbstractRepositoryPopulatorFactoryBean
- All Implemented Interfaces:
EventListener,Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<ResourceReaderRepositoryPopulator>,InitializingBean,ApplicationContextAware,ApplicationListener<ContextRefreshedEvent>
- Direct Known Subclasses:
Jackson2RepositoryPopulatorFactoryBean,UnmarshallerRepositoryPopulatorFactoryBean
public abstract class AbstractRepositoryPopulatorFactoryBean
extends AbstractFactoryBean<ResourceReaderRepositoryPopulator>
implements ApplicationListener<ContextRefreshedEvent>, ApplicationContextAware
Base class for
FactoryBeans creating ResourceReaderRepositoryPopulators. Sub-classes have to provide
a ResourceReader to hand into the RepositoryPopulator instance created.- Author:
- Oliver Gierke, Christoph Strobl, Johannes Englmeier
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ResourceReaderRepositoryPopulatorClass<?>protected abstract ResourceReadervoidvoidsetApplicationContext(ApplicationContext applicationContext) voidsetResources(Resource[] resources) Configures theResources to be used to load objects from and initialize the repositories eventually.Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
AbstractRepositoryPopulatorFactoryBean
public AbstractRepositoryPopulatorFactoryBean()
-
-
Method Details
-
setResources
Configures theResources to be used to load objects from and initialize the repositories eventually.- Parameters:
resources- must not be null.
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<ResourceReaderRepositoryPopulator>- Specified by:
getObjectTypein classAbstractFactoryBean<ResourceReaderRepositoryPopulator>
-
createInstance
- Specified by:
createInstancein classAbstractFactoryBean<ResourceReaderRepositoryPopulator>
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ContextRefreshedEvent>
-
getResourceReader
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classAbstractFactoryBean<ResourceReaderRepositoryPopulator>- Throws:
Exception
-