Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Commit

Permalink
Added more dropwizard objects to CI container
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed Feb 19, 2018
1 parent 83f6f57 commit c87fffb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
hk2bundleVersion=0.6.4-SNAPSHOT
hk2bundleVersion=0.6.5-SNAPSHOT
dropwizardVersion=1.2.2
junitVersion=4.12
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,15 @@ public void initialize(Bootstrap<?> bootstrap) {
@Override
public void run(Environment environment) {
addOneConstant(serviceLocator, environment);
addOneConstant(serviceLocator, environment.jersey());
addOneConstant(serviceLocator, environment.admin());
addOneConstant(serviceLocator, environment.lifecycle());
addOneConstant(serviceLocator, environment.servlets());
addOneConstant(serviceLocator, environment.getObjectMapper());
addOneConstant(serviceLocator, environment.metrics());
addOneConstant(serviceLocator, environment.getValidator());
addOneConstant(serviceLocator, environment.metrics());
addOneConstant(serviceLocator, environment.healthChecks());


LifecycleEnvironment lifecycle = environment.lifecycle();
MetricRegistry metricRegistry = environment.metrics();
Expand Down

0 comments on commit c87fffb

Please sign in to comment.