File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
src/main/java/com/arpnetworking/metrics/mad Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -220,15 +220,7 @@ private void launchActors(final Injector injector) {
220
220
// Load supplemental routes
221
221
final List <SupplementalRoutes > supplementalHttpRoutes = new ArrayList <>();
222
222
_configuration .getSupplementalHttpRoutesClass ().ifPresent (clazz -> {
223
- try {
224
- supplementalHttpRoutes .add (clazz .newInstance ());
225
- } catch (final InstantiationException | IllegalAccessException e ) {
226
- LOGGER .warn ()
227
- .setMessage ("Failed to instantiate supplemental http routes" )
228
- .addData ("supplementalHttpRoutesClass" , clazz )
229
- .setThrowable (e )
230
- .log ();
231
- }
223
+ supplementalHttpRoutes .add (injector .getInstance (clazz ));
232
224
});
233
225
234
226
// Create and bind Http server
You can’t perform that action at this time.
0 commit comments