Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Modules.override to allow other ServletModules to be installed in the injector #10

Merged
merged 1 commit into from Apr 18, 2013

Conversation

jonbca
Copy link

@jonbca jonbca commented Apr 15, 2013

This is to resolve #8

Updated the GuiceBundle and JerseyContainerModule so that JerseyContainerModule no longer relies on Modules.override to swap the Dropwizard WebApplication for the standard Jersey one. Using Modules.override prevents other ServletModules from being installed in the DI container.

Using inheritance probably isn't the most elegant solution, but I've confirmed that it works, and the Dropwizard resource config is correctly being injected.

I've also confirmed that further ServletModules are correctly being added to the injector.

Updated the GuiceBundle and JerseyContainerModule
so that JerseyContainerModule no longer relies on Modules.override
to swap the Dropwizard WebApplication for the standard
Jersey one. Using Modules.override prevents other ServletModules
from being installed in the DI container.
eliast added a commit that referenced this pull request Apr 18, 2013
Remove Modules.override to allow other ServletModules to be installed in the injector
@eliast eliast merged commit 0deb4ad into HubSpot:master Apr 18, 2013
@bilal
Copy link

bilal commented Feb 12, 2014

I also need support for multiple ServletModules for Shiro. Can you please tag the merged commit as version 0.6.2.1 and release it?

We are not using version 0.7.x of DropWizard and there is no point maintaining a clone of this repo and hosting a custom version of the artifact internally.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modules.override for JerseyServletModule conflicts with Shiro filters
3 participants