org.springframework.data.mongodb.config
Class AbstractMongoConfiguration
java.lang.Object
org.springframework.data.mongodb.config.AbstractMongoConfiguration
@Configuration
public abstract class AbstractMongoConfiguration
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMongoConfiguration
public AbstractMongoConfiguration()
getDatabaseName
public abstract String getDatabaseName()
mongo
@Bean
public abstract com.mongodb.Mongo mongo()
throws Exception
- Throws:
Exception
mongoTemplate
@Bean
public MongoTemplate mongoTemplate()
throws Exception
- Throws:
Exception
mongoDbFactory
@Bean
public MongoDbFactory mongoDbFactory()
throws Exception
- Throws:
Exception
getMappingBasePackage
public String getMappingBasePackage()
getUserCredentials
public org.springframework.data.authentication.UserCredentials getUserCredentials()
mongoMappingContext
@Bean
public MongoMappingContext mongoMappingContext()
throws ClassNotFoundException,
LinkageError
- Throws:
ClassNotFoundException
LinkageError
mappingMongoConverter
@Bean
public MappingMongoConverter mappingMongoConverter()
throws Exception
- Throws:
Exception
afterMappingMongoConverterCreation
protected void afterMappingMongoConverterCreation(MappingMongoConverter converter)
- Hook that allows post-processing after the MappingMongoConverter has been successfully created.
- Parameters:
converter
-
Copyright © 2011. All Rights Reserved.