org.springframework.data.document.mongodb.repository
Class MongoRepositoryFactoryBean
java.lang.Object
org.springframework.data.repository.support.RepositoryFactoryBeanSupport<MongoRepository<?,?>>
org.springframework.data.document.mongodb.repository.MongoRepositoryFactoryBean
- All Implemented Interfaces:
- FactoryBean<MongoRepository<?,?>>, InitializingBean
public class MongoRepositoryFactoryBean
- extends org.springframework.data.repository.support.RepositoryFactoryBeanSupport<MongoRepository<?,?>>
FactoryBean
to create MongoRepository
instances.
- Author:
- Oliver Gierke
Methods inherited from class org.springframework.data.repository.support.RepositoryFactoryBeanSupport |
getObject, getObjectType, getRepositoryPostProcessors, isSingleton, setCustomImplementation, setQueryLookupStrategyKey, setRepositoryInterface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MongoRepositoryFactoryBean
public MongoRepositoryFactoryBean()
setTemplate
public void setTemplate(MongoTemplate template)
- Configures the
MongoTemplate
to be used.
- Parameters:
template
- the template to set
createRepositoryFactory
protected org.springframework.data.repository.support.RepositoryFactorySupport createRepositoryFactory()
- Specified by:
createRepositoryFactory
in class org.springframework.data.repository.support.RepositoryFactoryBeanSupport<MongoRepository<?,?>>
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Overrides:
afterPropertiesSet
in class org.springframework.data.repository.support.RepositoryFactoryBeanSupport<MongoRepository<?,?>>
Copyright © 2011. All Rights Reserved.