Spring Data Graph

org.springframework.data.document.mongodb.repository
Class MongoRepositoryFactoryBean

java.lang.Object
  extended by org.springframework.data.repository.support.RepositoryFactoryBeanSupport<MongoRepository<?,?>>
      extended by 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

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

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<MongoRepository<?,?>>

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.data.repository.support.RepositoryFactoryBeanSupport<MongoRepository<?,?>>

Spring Data Graph

Copyright © 2011. All Rights Reserved.