// ...
private final PluginHandler customPluginHandler;
@Inject
public CustomBootstrapInitializer(
PortalConfig config,
Vertx vertx,
Provider<PortalHttpVerticle> verticleProvider,
MeshRestClient meshClient,
HandlerProvider handlerProvider) {
super(config, vertx, verticleProvider, meshClient);
this.customPluginHandler = new BasicPluginHandler(
"customPlugin",(1)
config,
true,(2)
handlerProvider);
}
@Override
public void start() {
// Other initializations.
deployHttpVerticles(router -> {
customPluginHandler.addRoutes(router);
});
}