org.springframework.data.document.mongodb.repository
Class MongoRepositoryFactoryBean<T extends MongoRepository<S,ID>,S,ID extends java.io.Serializable>
java.lang.Object
org.springframework.data.document.mongodb.repository.MongoRepositoryFactoryBean<T,S,ID>
public class MongoRepositoryFactoryBean<T extends MongoRepository<S,ID>,S,ID extends java.io.Serializable>
- extends
org.springframework.beans.factory.FactoryBean
to create MongoRepository
instances.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
template
private MongoTemplate template
mappingContext
private MappingContext mappingContext
MongoRepositoryFactoryBean
public MongoRepositoryFactoryBean()
setTemplate
public void setTemplate(MongoTemplate template)
- Configures the
MongoTemplate
to be used.
- Parameters:
template
- the template to set
setMappingContext
public void setMappingContext(MappingContext mappingContext)
- Sets the
MappingContext
used with the underlying MongoTemplate
.
- Parameters:
mappingContext
- the mappingContext to set
createRepositoryFactory
protected RepositoryFactorySupport createRepositoryFactory()
afterPropertiesSet
public void afterPropertiesSet()