-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #751 from HubSpot/guicier
use dropwizard-guicier 0.7.1.2
- Loading branch information
Showing
11 changed files
with
27 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 11 additions & 8 deletions
19
SingularityService/src/main/java/com/hubspot/singularity/SingularityServiceModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
package com.hubspot.singularity; | ||
|
||
import com.google.inject.Binder; | ||
import com.hubspot.dropwizard.guicier.DropwizardAwareModule; | ||
import com.hubspot.mesos.client.SingularityMesosClientModule; | ||
import com.hubspot.singularity.config.SingularityConfiguration; | ||
import com.hubspot.singularity.data.SingularityDataModule; | ||
import com.hubspot.singularity.data.history.SingularityHistoryModule; | ||
import com.hubspot.singularity.data.transcoders.SingularityTranscoderModule; | ||
import com.hubspot.singularity.data.zkmigrations.SingularityZkMigrationsModule; | ||
import com.hubspot.singularity.event.SingularityEventModule; | ||
import com.hubspot.singularity.guice.ConfigurationAwareModule; | ||
import com.hubspot.singularity.jersey.SingularityJerseyModule; | ||
import com.hubspot.singularity.mesos.SingularityMesosModule; | ||
import com.hubspot.singularity.resources.SingularityResourceModule; | ||
import com.hubspot.singularity.scheduler.SingularitySchedulerModule; | ||
import com.palominolabs.metrics.guice.MetricsInstrumentationModule; | ||
|
||
public class SingularityServiceModule extends ConfigurationAwareModule<SingularityConfiguration> { | ||
public class SingularityServiceModule extends DropwizardAwareModule<SingularityConfiguration> { | ||
|
||
@Override | ||
protected void configure(Binder binder, SingularityConfiguration configuration) { | ||
binder.install(new SingularityMainModule(configuration)); | ||
public void configure(Binder binder) { | ||
binder.install(new MetricsInstrumentationModule(getBootstrap().getMetricRegistry())); | ||
|
||
binder.install(new SingularityMainModule(getConfiguration())); | ||
binder.install(new SingularityDataModule()); | ||
binder.install(new SingularitySchedulerModule()); | ||
binder.install(new SingularityResourceModule(configuration.getUiConfiguration())); | ||
binder.install(new SingularityResourceModule(getConfiguration().getUiConfiguration())); | ||
binder.install(new SingularityTranscoderModule()); | ||
binder.install(new SingularityHistoryModule(configuration)); | ||
binder.install(new SingularityHistoryModule(getConfiguration())); | ||
binder.install(new SingularityMesosModule()); | ||
binder.install(new SingularityZkMigrationsModule()); | ||
binder.install(new SingularityMesosClientModule()); | ||
binder.install(new SingularityJerseyModule()); | ||
|
||
binder.install(new SingularityEventModule(configuration)); | ||
binder.install(new SingularityEventModule(getConfiguration())); | ||
|
||
binder.install(new SingularityAuthModule(configuration)); | ||
binder.install(new SingularityAuthModule(getConfiguration())); | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
SingularityService/src/main/java/com/hubspot/singularity/guice/BootstrapAwareModule.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
SingularityService/src/main/java/com/hubspot/singularity/guice/ConfigurationAwareModule.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
SingularityService/src/main/java/com/hubspot/singularity/guice/DropwizardGuiceContainer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.