I have a class OrderSynSubscriber, that is the subclass of AbstractSubscriber. I create a source for it
Source<Order, ActorRef> orderSource =
Source.actorPublisher(OrderSynSubscriber.props(.....));
I do not know how to use DI for OrderSynSubscriber. So I get the instance from Injector manually in the class.
The props() is defined as:
public static Props props(String orderUrl, String clientId, Date synTime)
{
return Props.create(OrderSynSubscriber.class, ()->new OrderSynSubscriber(orderUrl, clientId, synTime));
}