You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Library and utilities supporting rapid development and centralized management of common development practices.
3
+
4
+
## Getting Started
5
+
6
+
This section desribed how to integrate susceptor in your development workflow and where and
7
+
how it can help you developing plugins.
8
+
9
+
## Features
10
+
11
+
This brievly describes the core features of this library. You can find further information
12
+
in the correspondign sub directories.
13
+
14
+
### Dependency Injection
15
+
16
+
Implemented in [susceptor-dependency-injection](susceptor-dependency-injection).
17
+
18
+
Susceptor defines [Google Guice](https://github.com/google/guice) as a dependency injection framework.
19
+
20
+
### Persistence
21
+
22
+
Implemented in [susceptor-persistence](susceptor-persistence).
23
+
24
+
The persistence module introduces MongoDB as a database and uses [Morphia](https://morphia.dev/)
25
+
as orm for MongoDB.
26
+
27
+
For getting started you should take a look at the [PersistenceModule](susceptor-persistence/src/main/java/de/marmeladenoma/susceptor/persistence/inject/PersistenceModule.java).
28
+
This module contains several bindings for bootstrapping your persistence layer with MongoDB. The usage is pretty straight forward:
29
+
30
+
```java
31
+
var config =PersistenceConfig.newBuilder()
32
+
.withMongoConnectionString("")
33
+
.withMongoUser("")
34
+
.withMongoPassword("")
35
+
.withMongoSource("")
36
+
.build();
37
+
var injector =Guice.createInjector(PersistenceModule.create(config));
38
+
```
39
+
40
+
The injector prepares a MongoDB Client that can be easily used via the
0 commit comments