public class MongoRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
to create MongoRepository
instances.Constructor and Description |
---|
MongoRepositoryFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
createRepositoryFactory() |
protected RepositoryFactorySupport |
getFactoryInstance(MongoOperations operations)
Creates and initializes a
RepositoryFactorySupport instance. |
void |
setCreateIndexesForQueryMethods(boolean createIndexesForQueryMethods)
Configures whether to automatically create indexes for the properties referenced in a query method.
|
protected void |
setMappingContext(MappingContext<?,?> mappingContext) |
void |
setMongoOperations(MongoOperations operations)
Configures the
MongoOperations to be used. |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryInterface
public void setMongoOperations(MongoOperations operations)
MongoOperations
to be used.operations
- the operations to setpublic void setCreateIndexesForQueryMethods(boolean createIndexesForQueryMethods)
createIndexesForQueryMethods
- the createIndexesForQueryMethods to setprotected void setMappingContext(MappingContext<?,?> mappingContext)
setMappingContext
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected final RepositoryFactorySupport createRepositoryFactory()
createRepositoryFactory
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected RepositoryFactorySupport getFactoryInstance(MongoOperations operations)
RepositoryFactorySupport
instance.operations
- public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.