File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/kapeta/spring/mongo Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11package com .kapeta .spring .mongo ;
22
33
4- import com .blockware .spring .cluster .BlockwareClusterService ;
54import com .fasterxml .jackson .databind .ObjectMapper ;
65import com .fasterxml .jackson .databind .node .ObjectNode ;
6+ import com .kapeta .spring .cluster .KapetaClusterService ;
77import com .mongodb .*;
88import com .mongodb .client .MongoClient ;
99import com .mongodb .client .MongoClients ;
@@ -37,7 +37,7 @@ abstract public class AbstractMongoDBConfig {
3737 private static final String PORT_TYPE = "mongodb" ;
3838
3939 @ Autowired
40- private BlockwareClusterService blockwareConfigSource ;
40+ private KapetaClusterService blockwareConfigSource ;
4141
4242 @ Autowired
4343 private ObjectMapper objectMapper ;
@@ -57,7 +57,7 @@ protected AbstractMongoDBConfig(String resourceName) {
5757
5858 @ Bean
5959 public MongoClient createClient () {
60- final BlockwareClusterService .ResourceInfo mongoInfo = blockwareConfigSource .getResourceInfo (RESOURCE_TYPE , PORT_TYPE , resourceName );
60+ final KapetaClusterService .ResourceInfo mongoInfo = blockwareConfigSource .getResourceInfo (RESOURCE_TYPE , PORT_TYPE , resourceName );
6161 Optional <String > dbUsername = Optional .ofNullable (mongoInfo .getCredentials ().get ("username" ));
6262 Optional <String > dbPassword = Optional .ofNullable (mongoInfo .getCredentials ().get ("password" ));
6363
You can’t perform that action at this time.
0 commit comments