vert-x3 / vertx-config

Vert.x Configuration Service
Apache License 2.0
54 stars 64 forks source link

Deprecate ConfigRetriever#getConfigAsFuture static method #96

Closed vietj closed 5 years ago

vietj commented 5 years ago

In Vert.x 4 this method is now an instance method of ConfigRetriever, so we deprecate this in 3.x

// deprecated
Future<JsonObject> fut = ConfigRetriever. getConfigAsFuture(retriever);

// instead use in 3.X
fut = Future.future(retriever::getConfig);

// or in 4.0
fut = retriever.getConfig();