org.springframework.data.mongodb.repository.config
Class SimpleMongoRepositoryConfiguration

java.lang.Object
  extended by org.springframework.data.repository.config.RepositoryConfig<SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration,SimpleMongoRepositoryConfiguration>
      extended by org.springframework.data.mongodb.repository.config.SimpleMongoRepositoryConfiguration
All Implemented Interfaces:
org.springframework.data.repository.config.CommonRepositoryConfigInformation, org.springframework.data.repository.config.GlobalRepositoryConfigInformation<SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration>

public class SimpleMongoRepositoryConfiguration
extends org.springframework.data.repository.config.RepositoryConfig<SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration,SimpleMongoRepositoryConfiguration>

RepositoryConfig implementation to create SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration instances for both automatic and manual configuration.

Author:
Oliver Gierke

Nested Class Summary
static interface SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration
          Simple interface for configuration values specific to Mongo repositories.
 
Field Summary
 
Fields inherited from class org.springframework.data.repository.config.RepositoryConfig
BASE_PACKAGE, DEFAULT_REPOSITORY_IMPL_POSTFIX, QUERY_LOOKUP_STRATEGY, REPOSITORY_FACTORY_CLASS_NAME, REPOSITORY_IMPL_POSTFIX, TRANSACTION_MANAGER_REF
 
Constructor Summary
protected SimpleMongoRepositoryConfiguration(Element repositoriesElement)
          Creates a new SimpleMongoRepositoryConfiguration for the given Element.
 
Method Summary
protected  SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration createSingleRepositoryConfigInformationFor(Element element)
           
 SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration getAutoconfigRepositoryInformation(String interfaceName)
           
 boolean getCreateQueryIndexes()
          Returns whether to create indexes for query methods.
 String getMongoTemplateRef()
          Returns the bean name of the org.springframework.data.mongodb.core.core.MongoTemplate to be referenced.
 String getNamedQueriesLocation()
           
 
Methods inherited from class org.springframework.data.repository.config.RepositoryConfig
configureManually, getBasePackage, getQueryLookupStrategyKey, getRepositoryBaseInterface, getRepositoryFactoryBeanClassName, getRepositoryImplementationSuffix, getSingleRepositoryConfigInformations, getSource, getTransactionManagerRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMongoRepositoryConfiguration

protected SimpleMongoRepositoryConfiguration(Element repositoriesElement)
Creates a new SimpleMongoRepositoryConfiguration for the given Element.

Parameters:
repositoriesElement -
Method Detail

getMongoTemplateRef

public String getMongoTemplateRef()
Returns the bean name of the org.springframework.data.mongodb.core.core.MongoTemplate to be referenced.

Returns:

getCreateQueryIndexes

public boolean getCreateQueryIndexes()
Returns whether to create indexes for query methods.

Returns:

getAutoconfigRepositoryInformation

public SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration getAutoconfigRepositoryInformation(String interfaceName)

getNamedQueriesLocation

public String getNamedQueriesLocation()

createSingleRepositoryConfigInformationFor

protected SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration createSingleRepositoryConfigInformationFor(Element element)
Specified by:
createSingleRepositoryConfigInformationFor in class org.springframework.data.repository.config.RepositoryConfig<SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration,SimpleMongoRepositoryConfiguration>


Copyright © 2011. All Rights Reserved.