org.springframework.data.document.mongodb.repository
Class MongoRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends java.io.Serializable>
java.lang.Object
org.springframework.data.repository.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.document.mongodb.repository.MongoRepositoryFactoryBean<T,S,ID>
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.data.repository.support.RepositoryFactoryInformation<S,ID>
public class MongoRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends java.io.Serializable>
- extends org.springframework.data.repository.support.RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
to create MongoRepository
instances.
- Author:
- Oliver Gierke
Methods inherited from class org.springframework.data.repository.support.RepositoryFactoryBeanSupport |
getEntityInformation, getObject, getObjectType, getRepositoryInterface, 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<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends java.io.Serializable>
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in class org.springframework.data.repository.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends java.io.Serializable>
Copyright © 2011. All Rights Reserved.