diff --git a/akka-docs/rst/java/untyped-actors.rst b/akka-docs/rst/java/untyped-actors.rst index 00cb8885cc..3bc427ba2f 100644 --- a/akka-docs/rst/java/untyped-actors.rst +++ b/akka-docs/rst/java/untyped-actors.rst @@ -153,8 +153,8 @@ Actors are automatically started asynchronously when created. .. _actor-create-factory: -Creating Actors with Factory Methods ------------------------------------- +Dependency Injection +-------------------- If your UntypedActor has a constructor that takes parameters then those need to be part of the :class:`Props` as well, as described `above`__. But there @@ -178,6 +178,12 @@ __ Props_ When using a dependency injection framework, actor beans *MUST NOT* have singleton scope. +Techniques for dependency injection and integration with dependency injection frameworks +are described in more depth in the +`Using Akka with Dependency Injection `_ +guideline and the `Akka Java Spring `_ tutorial +in Typesafe Activator. + The Inbox --------- diff --git a/akka-docs/rst/scala/actors.rst b/akka-docs/rst/scala/actors.rst index c526d14e5b..a75c16c0e5 100644 --- a/akka-docs/rst/scala/actors.rst +++ b/akka-docs/rst/scala/actors.rst @@ -164,10 +164,10 @@ another child to the same parent an `InvalidActorNameException` is thrown. Actors are automatically started asynchronously when created. -Creating Actors with Factory Methods ------------------------------------- +Dependency Injection +-------------------- -If your UntypedActor has a constructor that takes parameters then those need to +If your Actor has a constructor that takes parameters then those need to be part of the :class:`Props` as well, as described `above`__. But there are cases when a factory method must be used, for example when the actual constructor arguments are determined by a dependency injection framework. @@ -188,6 +188,12 @@ __ Props_ When using a dependency injection framework, actor beans *MUST NOT* have singleton scope. +Techniques for dependency injection and integration with dependency injection frameworks +are described in more depth in the +`Using Akka with Dependency Injection `_ +guideline and the `Akka Java Spring `_ tutorial +in Typesafe Activator. + The Actor DSL ------------- diff --git a/akka-docs/rst/scala/howto.rst b/akka-docs/rst/scala/howto.rst index 5c88bafa1b..7c1c8197e5 100644 --- a/akka-docs/rst/scala/howto.rst +++ b/akka-docs/rst/scala/howto.rst @@ -35,7 +35,7 @@ nodes. In this post we’ll explore the implementation of such a concept." The pattern is described `Balancing Workload across Nodes with Akka 2 `_. Work Pulling Pattern to throttle and distribute work, and prevent mailbox overflow -=============================== +================================================================================== Contributed by: Michael Pollmeier