org.springframework.data.mongodb.repository.support
Class MongoRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.mongodb.repository.support.MongoRepositoryFactory
public class MongoRepositoryFactory
- extends RepositoryFactorySupport
Factory 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 |
MongoRepositoryFactory
public MongoRepositoryFactory(MongoOperations mongoOperations)
- Creates a new
MongoRepositoryFactory
with the given MongoOperations
.
- Parameters:
mongoOperations
- must not be null
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
- Specified by:
getRepositoryBaseClass
in class RepositoryFactorySupport
getTargetRepository
protected Object getTargetRepository(RepositoryMetadata metadata)
- Specified by:
getTargetRepository
in class RepositoryFactorySupport
getQueryLookupStrategy
protected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
- Overrides:
getQueryLookupStrategy
in class RepositoryFactorySupport
getEntityInformation
public <T,ID extends Serializable> MongoEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
- Specified by:
getEntityInformation
in class RepositoryFactorySupport
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.