DATAMONGO-1158 - Polishing.

MongoFactoryBean, MongoOptionsFactoryBean, MongoClientFactoryBean and MongoClientOptionsFactoryBean now extend AbstractFactoryBean to get a lot of the lifecycle callbacks without further code.

Added non-null assertions to newly introduced methods on MongoOperations/MongoTemplate.

Moved MongoClientVersion into util package. Introduced static imports for ReflectionUtils and MongoClientVersion for all references in the newly introduced Invoker types.

Some formatting, JavaDoc polishes, suppress deprecation warnings. Added build profile for MongoDB Java driver 3.0 as well as the following snapshot.

Original pull request: #273.
This commit is contained in:
Oliver Gierke
2015-03-02 19:54:46 +01:00
parent 57ab27aa5b
commit a86d704bec
35 changed files with 414 additions and 390 deletions

11
pom.xml
View File

@@ -122,7 +122,16 @@
<profile>
<id>mongo-3-next</id>
<id>mongo3</id>
<properties>
<mongo>3.0.0-beta3</mongo>
</properties>
</profile>
<profile>
<id>mongo3-next</id>
<properties>
<mongo>3.0.0-SNAPSHOT</mongo>
</properties>