feat(polling-registry) Add URILoadingRegistry constructor for Servlet.
Useful for rapid development and debugging.
MODIFY
gateway/engine/vertx-polling/src/main/java/io/apiman/gateway/engine/vertx/polling/URILoadingRegistry.java
gateway/engine/vertx-polling/src/main/java/io/apiman/gateway/engine/vertx/polling/URILoadingRegistry.java
@@ -68,6 +68,11 @@ public class URILoadingRegistry extends InMemoryRegistry implements AsyncInitial
uri = URI.create(options.get("configUri"));
}
+ public URILoadingRegistry(Map<String, String> options) {
+ this(Vertx.vertx(), null, options);
+ initialize(init->{});
+ }
+
@Override
public void initialize(IAsyncResultHandler<Void> resultHandler) {
getURILoader(vertx, uri, options).subscribe(this, resultHandler::handle);

feat(polling-registry) Add URILoadingRegistry constructor for Servlet.

Useful for rapid development and debugging.