Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Scaldi 我想将 Actor 注入其他 Actor。我什么时候应该使用injectvs injectActorRef?
inject
injectActorRef
例如,在Module我有一个看起来像这样的绑定:binding toProvider new SomeActor(). 注射时SomeActor应该使用哪种方法?
Module
binding toProvider new SomeActor()
SomeActor