Skip to content

Commit ff1570b

Browse files
committed
Installation guide
JAVA-1718
1 parent 3395a60 commit ff1570b

File tree

16 files changed

+128
-8
lines changed

16 files changed

+128
-8
lines changed
Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
date = "2015-03-17T15:36:56Z"
3-
draft = true
43
title = "Installation Guide"
54
[menu.main]
65
parent = "Getting Started"
@@ -10,4 +9,39 @@ title = "Installation Guide"
109

1110
# Installation
1211

13-
How to install the driver
12+
There are three different MongoDB drivers available in the 3.0 release and a standalone BSON library.
13+
The recommended way to get started using one of the drivers in your project is with a dependency management system.
14+
15+
{{< distroPicker >}}
16+
17+
## MongoDB Driver
18+
19+
The MongoDB Driver is the updated synchronous Java driver that includes the
20+
legacy API as well as a new generic MongoCollection interface that complies with
21+
a new cross-driver CRUD specification.
22+
23+
{{< install artifactId="mongodb-driver" version="3.0.0-rc1" >}}
24+
25+
26+
## MongoDB Async Driver
27+
A new asynchronous API that can leverage either Netty or Java 7's AsynchronousSocketChannel for fast and non-blocking IO.
28+
29+
{{< install artifactId="mongodb-driver" version="3.0.0-rc1" >}}
30+
31+
## MongoDB Core Driver
32+
The MongoDB Driver and Async Driver are both built on top of this new core library. Anyone can use it to build alternative or experimental high-level APIs.
33+
34+
{{< install artifactId="mongodb-driver-core" version="3.0.0-rc1" >}}
35+
36+
## BSON
37+
38+
This library comprehensively supports [BSON](http://www.bsonspec.org),
39+
the data storage and network transfer format that MongoDB uses for "documents".
40+
BSON is short for Binary [JSON](http://json.org/), is a binary-encoded serialization of JSON-like documents.
41+
42+
{{< install artifactId="bson" version="3.0.0-rc1" >}}
43+
44+
## Uber MongoDB Java Driver
45+
This is the legacy uber jar that contains everything you need; the BSON library, the core library and the mongodb-driver.
46+
47+
{{< install artifactId="mongo-java-driver" version="3.0.0-rc1" >}}

docs/reference/data/mongodb.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
githubRepo = "mongo-java-driver"
22
githubBranch = "master"
33
currentVersion = "3.0"
4-
driverVersions = ["3.0"]
54
highlightTheme = "idea.css"
65
apiUrl = "http://api.mongodb.org/java/3.0/"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<link rel="stylesheet" href="{{.Site.BaseUrl}}/lib/bootstrap-toggle/bootstrap-toggle.min.css" type="text/css" />
2+
<link rel="stylesheet" href="{{.Site.BaseUrl}}/css/java.css" type="text/css" />
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<script type="text/javascript" src="{{.Site.BaseUrl}}/lib/bootstrap-toggle/bootstrap-toggle.min.js"></script>
2+
<script type="text/javascript" src="{{.Site.BaseUrl}}/js/java.js"></script>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="pull-right">
2+
<input type="checkbox" checked="" class="distroPicker" data-toggle="toggle" data-on="Maven" data-off="Gradle" data-offstyle="success">
3+
</div>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{{ $artifactId := .Get "artifactId"}}{{ $version := .Get "version"}}
2+
<section class="maven">
3+
<pre><code class="ini">
4+
&lt;dependencies&gt;
5+
&lt;dependency&gt;
6+
&lt;groupId&gt;org.mongodb&lt;/groupId&gt;
7+
&lt;artifactId&gt;{{$artifactId}}&lt;/artifactId&gt;
8+
&lt;version&gt;{{$version}}&lt;/version&gt;
9+
&lt;/dependency&gt;
10+
&lt;/dependencies&gt;
11+
12+
</code></pre>
13+
</section>
14+
<section class="gradle hidden">
15+
<pre><code>
16+
dependencies {
17+
compile 'org.mongodb:{{$artifactId}}:{{$version}}'
18+
}
19+
20+
</code></pre>
21+
</section>
22+
<section class="downloadInfo">
23+
<p class="small">You can also download the jars
24+
<a href="https://oss.sonatype.org/content/repositories/releases/org/mongodb/{{$artifactId}}/{{$version}}" target="_blank">directly</a>
25+
from sonatype.</a>
26+
</p>
27+
</section>

docs/reference/static/css/java.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.downloadInfo {
2+
margin-top: -24px;
3+
font-size: 14px;
4+
}

docs/reference/static/js/java.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
jQuery(document).ready(function(){
2+
$('.distroPicker').bootstrapToggle();
3+
$('.distroPicker').change(function () {
4+
if ($('.distroPicker').prop('checked')) {
5+
$('.gradle').addClass('hidden');
6+
$('.maven').removeClass('hidden');
7+
} else {
8+
$('.maven').addClass('hidden');
9+
$('.gradle').removeClass('hidden');
10+
}
11+
});
12+
});
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*! ========================================================================
2+
* Bootstrap Toggle: bootstrap-toggle.css v2.2.0
3+
* http://www.bootstraptoggle.com
4+
* ========================================================================
5+
* Copyright 2014 Min Hur, The New York Times Company
6+
* Licensed under MIT
7+
* ======================================================================== */
8+
.checkbox label .toggle,.checkbox-inline .toggle{margin-left:-20px;margin-right:5px}
9+
.toggle{position:relative;overflow:hidden}
10+
.toggle input[type=checkbox]{display:none}
11+
.toggle-group{position:absolute;width:200%;top:0;bottom:0;left:0;transition:left .35s;-webkit-transition:left .35s;-moz-user-select:none;-webkit-user-select:none}
12+
.toggle.off .toggle-group{left:-100%}
13+
.toggle-on{position:absolute;top:0;bottom:0;left:0;right:50%;margin:0;border:0;border-radius:0}
14+
.toggle-off{position:absolute;top:0;bottom:0;left:50%;right:0;margin:0;border:0;border-radius:0}
15+
.toggle-handle{position:relative;margin:0 auto;padding-top:0;padding-bottom:0;height:100%;width:0;border-width:0 1px}
16+
.toggle.btn{min-width:59px;min-height:34px}
17+
.toggle-on.btn{padding-right:24px}
18+
.toggle-off.btn{padding-left:24px}
19+
.toggle.btn-lg{min-width:79px;min-height:45px}
20+
.toggle-on.btn-lg{padding-right:31px}
21+
.toggle-off.btn-lg{padding-left:31px}
22+
.toggle-handle.btn-lg{width:40px}
23+
.toggle.btn-sm{min-width:50px;min-height:30px}
24+
.toggle-on.btn-sm{padding-right:20px}
25+
.toggle-off.btn-sm{padding-left:20px}
26+
.toggle.btn-xs{min-width:35px;min-height:22px}
27+
.toggle-on.btn-xs{padding-right:12px}
28+
.toggle-off.btn-xs{padding-left:12px}

docs/reference/static/lib/bootstrap-toggle/bootstrap-toggle.min.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)