Skip to content

Commit

Permalink
making routing manager injectable for downstream apps (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetjaiswal authored Sep 5, 2019
1 parent bc76b89 commit c8b3bee
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected ProxyHandler getProxyHandler() {
.meter(getConfiguration().getRequestRouter().getName() + ".requests");
// Return the Proxy Handler for RequestRouter.
return new QueryIdCachingProxyHandler(
queryHistoryManager, routingManager, getApplicationPort(), requestMeter);
getQueryHistoryManager(), getRoutingManager(), getApplicationPort(), requestMeter);
}

@Provides
Expand Down Expand Up @@ -90,4 +90,10 @@ public GatewayBackendManager getGatewayBackendManager() {
public QueryHistoryManager getQueryHistoryManager() {
return this.queryHistoryManager;
}

@Provides
@Singleton
public RoutingManager getRoutingManager() {
return this.routingManager;
}
}

0 comments on commit c8b3bee

Please sign in to comment.