Deadbolt for Java

The Deadbolt for Java Developer Hub

Welcome to the Deadbolt for Java developer hub. You'll find comprehensive guides and documentation to help you start working with Deadbolt for Java as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    
Ask A Question

Questions

Need to inject a DAO-class to my ResourceHandler

Submitted by Johan Dahlberg 11 months ago

In Play 2.4 I used the following code in my isAllowed method:

UnitDAO unitDAO = play.Play.application().injector().instanceOf(UnitDAO.class);

is it possible to inject a class in a similiar way now when that way is removed by the Play team. Since I can't inject it with the usual way since it's a static context.

Loading comments...