Skip to content

play-java-dagger2-example inject JPAApi #173

@zakharovsergey1000

Description

@zakharovsergey1000

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions