akka-quartz-scheduler icon indicating copy to clipboard operation
akka-quartz-scheduler copied to clipboard

Call Utility classes injected with Config and WSClient from Actor class

Open venkateshzifo opened this issue 3 years ago • 1 comments

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)

venkateshzifo avatar Apr 17 '21 20:04 venkateshzifo

@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

felipebonezi avatar May 14 '21 08:05 felipebonezi