typesafehub / conductr-lib

Other
8 stars 13 forks source link

Play 2.5 conductr-client-lib: Provide injectable classes #76

Closed markusjura closed 8 years ago

markusjura commented 8 years ago

The Play 2.5 conductr-bundle-lib uses the new AhcWSClient which got introduced in Play 2.5 This AhcWSClient needs a Materializer in scope. The current implementation is making use of play.api.Play.maybeApplication to get the Materializer from Play's default actor system. An IllegalStateException is thrown if no Play application is in scope.

This implementation should be changed because play.api.Play.maybeApplication has been deprecated and it makes the code harder to test because a fake application needs to be created. The new implementation of the Play 2.5 conductr-client-lib should:

huntc commented 8 years ago

Fixed by #77