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

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