/** * Bind an actor. * * This will cause the actor to be instantiated by Guice, allowing it to be dependency injected itself. It will * bind the returned ActorRef for the actor will be bound, qualified with the passed in name, so that it can be * injected into other components. * * @param actorClass The class that implements the actor. * @param name The name of the actor. */ default <T extends Actor> void bindActor(Class<T> actorClass, String name) { bindActor(actorClass, name, Function.identity()); }
/** * Bind an actor. * * This will cause the actor to be instantiated by Guice, allowing it to be dependency injected itself. It will * bind the returned ActorRef for the actor will be bound, qualified with the passed in name, so that it can be * injected into other components. * * @param <T> the actor type. * @param actorClass The class that implements the actor. * @param name The name of the actor. */ default <T extends Actor> void bindActor(Class<T> actorClass, String name) { bindActor(actorClass, name, Function.identity()); }
/** * Bind an actor. * * This will cause the actor to be instantiated by Guice, allowing it to be dependency injected itself. It will * bind the returned ActorRef for the actor will be bound, qualified with the passed in name, so that it can be * injected into other components. * * @param <T> the actor type. * @param actorClass The class that implements the actor. * @param name The name of the actor. */ default <T extends Actor> void bindActor(Class<T> actorClass, String name) { bindActor(actorClass, name, Function.identity()); }