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 55import jakarta .enterprise .inject .Alternative ;
66import jakarta .enterprise .inject .Produces ;
77import jakarta .interceptor .Interceptor ;
8- import org .eclipse .jnosql .communication .Settings ;
9- import org .eclipse .jnosql .databases .mongodb .communication .MongoDBDocumentConfiguration ;
108import org .eclipse .jnosql .databases .mongodb .communication .MongoDBDocumentManager ;
119
1210import java .util .function .Supplier ;
@@ -18,9 +16,6 @@ public class ManagerSupplier implements Supplier<MongoDBDocumentManager> {
1816
1917 @ Produces
2018 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" );
2520 }
2621}
You can’t perform that action at this time.
0 commit comments