=doc #3500 Add section about Dependency Injection

This commit is contained in:
Patrik Nordwall 2013-08-26 09:58:16 +02:00
parent cdea2af973
commit 2087dfc1a0
3 changed files with 18 additions and 6 deletions

View file

@ -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 <http://letitcrash.com/post/55958814293/akka-dependency-injection>`_
guideline and the `Akka Java Spring <http://typesafe.com/activator/template/akka-java-spring>`_ tutorial
in Typesafe Activator.
The Inbox
---------

View file

@ -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 <http://letitcrash.com/post/55958814293/akka-dependency-injection>`_
guideline and the `Akka Java Spring <http://typesafe.com/activator/template/akka-java-spring>`_ tutorial
in Typesafe Activator.
The Actor DSL
-------------

View file

@ -35,7 +35,7 @@ nodes. In this post well explore the implementation of such a concept."
The pattern is described `Balancing Workload across Nodes with Akka 2 <http://letitcrash.com/post/29044669086/balancing-workload-across-nodes-with-akka-2>`_.
Work Pulling Pattern to throttle and distribute work, and prevent mailbox overflow
===============================
==================================================================================
Contributed by: Michael Pollmeier