enragedginger / akka-quartz-scheduler

Quartz Extension and utilities for cron-style scheduling in Akka
Other
559 stars 114 forks source link

Call Utility classes injected with Config and WSClient from Actor class #106

Open venkateshzifo opened 3 years ago

venkateshzifo commented 3 years ago

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 3 years ago

@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