Call Utility classes injected with Config and WSClient from Actor class
venkateshzifo opened this issue · 1 comments
venkateshzifo commented
Not able to call a utility class from Actor class. Throwing null when i try to use the objects
SchedulerActor -> TestUtils(WSClient, Config classes injected using dependency injection)
felipebonezi commented
@venkateshzifo did you inject your actor using bindActor(...)
method from AkkaGuice
dependency?
Ref # Scala:
https://www.playframework.com/documentation/2.8.x/ScalaAkka#Dependency-injecting-actors
Ref #Java:
https://www.playframework.com/documentation/2.8.x/JavaAkka#Dependency-injecting-actors