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

play-java-dagger2-example inject JPAApi #173

Open
zakharovsergey1000 opened this issue Jul 17, 2022 · 0 comments
Open

play-java-dagger2-example inject JPAApi #173

zakharovsergey1000 opened this issue Jul 17, 2022 · 0 comments

Comments

@zakharovsergey1000
Copy link

zakharovsergey1000 commented Jul 17, 2022

I am exploring the play-java-dagger2-example project. I tried to get JPAApi instance from MyComponentsFromContext like this:

JPAApi jpaApi = application().injector().instanceOf(JPAApi.class);

But this throws [NoSuchMethodException: play.db.jpa.JPAApi.<init>()]
What is the correct way to get JPAApi with Dagger 2?

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

No branches or pull requests

1 participant