Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Guice scope annotations are ignored #27

Open
facboy opened this issue Apr 28, 2015 · 1 comment
Open

Guice scope annotations are ignored #27

facboy opened this issue Apr 28, 2015 · 1 comment

Comments

@facboy
Copy link

facboy commented Apr 28, 2015

I have a Resource class annotated with com.google.inject.Singleton, with its constructor annotated with com.google.inject.Inject. This ends up having RequestScope in Jersey and is instantiated on every request.

I don't understand the innards of the bridging mechanism, but given that it requires Guice's Inject annotation to work, shouldn't it also respect Guice's scope annotations?

@vshankri
Copy link

Does this happen for all class registered as Singleton?

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

No branches or pull requests

2 participants