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?