Sorry, haven't really understand the details of DI, but it seems that
when using DI, I can only get an instance of WSClient from class
Application, hence I have to pass the reference of this WSClient to
every other classes or methods who need to use it?
And it doesn't seems possible to assign this WSClient to a val in a Scala singleton object?
This
is not convenience since I have to keep passing the WSClient around
instead of putting an import statement at the top of the file. Are there
any coding style suggestion for this kind of situation?
By the way, will
play.api.libs.ws.WS be deprecated in Play 3.0 so that we have to refactor our code in order to keep upgarding?
Thanks
pishen tsai於 2015年8月25日星期二 UTC+8上午10時44分53秒寫道: