File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/test/java/org/soujava/demos/mongodb/document Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 5
5
import jakarta .enterprise .inject .Alternative ;
6
6
import jakarta .enterprise .inject .Produces ;
7
7
import jakarta .interceptor .Interceptor ;
8
- import org .eclipse .jnosql .communication .Settings ;
9
- import org .eclipse .jnosql .databases .mongodb .communication .MongoDBDocumentConfiguration ;
10
8
import org .eclipse .jnosql .databases .mongodb .communication .MongoDBDocumentManager ;
11
9
12
10
import java .util .function .Supplier ;
@@ -18,9 +16,6 @@ public class ManagerSupplier implements Supplier<MongoDBDocumentManager> {
18
16
19
17
@ Produces
20
18
public MongoDBDocumentManager get () {
21
- Settings settings = Settings .builder ().put ("credential" , "value" ).build ();
22
- MongoDBDocumentConfiguration configuration = new MongoDBDocumentConfiguration ();
23
- var factory = configuration .apply (settings );
24
- return factory .apply ("database" );
19
+ return DocumentDatabase .INSTANCE .get ("database" );
25
20
}
26
21
}
You can’t perform that action at this time.
0 commit comments