Spring Data Document

org.springframework.data.document.mongodb.repository
Class MongoRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

java.lang.Object
  extended by org.springframework.data.repository.support.RepositoryFactoryBeanSupport<T,S,ID>
      extended by org.springframework.data.document.mongodb.repository.MongoRepositoryFactoryBean<T,S,ID>
All Implemented Interfaces:
FactoryBean<T>, InitializingBean, org.springframework.data.repository.support.RepositoryFactoryInformation<S,ID>

public class MongoRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.support.RepositoryFactoryBeanSupport<T,S,ID>

FactoryBean to create MongoRepository instances.

Author:
Oliver Gierke

Nested Class Summary
static class MongoRepositoryFactoryBean.MongoRepositoryFactory
          Repository to create MongoRepository instances.
 
Constructor Summary
MongoRepositoryFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.springframework.data.repository.support.RepositoryFactorySupport createRepositoryFactory()
           
 void setTemplate(MongoTemplate template)
          Configures the MongoTemplate to be used.
 
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
 

Constructor Detail

MongoRepositoryFactoryBean

public MongoRepositoryFactoryBean()
Method Detail

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 Serializable>

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.data.repository.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

Spring Data Document

Copyright © 2011. All Rights Reserved.