Skip to content

Commit

Permalink
Merge pull request #356 from Netflix/adminResourcesContainerConstructor
Browse files Browse the repository at this point in the history
create constructor for AdminResourcesContainer for use outside of guice
  • Loading branch information
twicksell authored Jan 4, 2018
2 parents f196430 + f1e01e1 commit d50bc0f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ public class AdminResourcesContainer {
private AtomicBoolean alreadyInited = new AtomicBoolean(false);
private int serverPort; // actual server listen port (apart from what's in Config)

@Inject
public AdminResourcesContainer() {}

public AdminResourcesContainer(Injector appInjector, AdminContainerConfig adminContainerConfig,
AdminPageRegistry adminPageRegistry) {
this.appInjector = appInjector;
this.adminContainerConfig = adminContainerConfig;
this.adminPageRegistry = adminPageRegistry;
}

/**
* Starts the container and hence the embedded jetty server.
*
Expand Down

0 comments on commit d50bc0f

Please sign in to comment.