Packages

t

akka.actor

IndirectActorProducer

trait IndirectActorProducer extends AnyRef

This interface defines a class of actor creation strategies deviating from the usual default of just reflectively instantiating the Actor subclass. It can be used to allow a dependency injection framework to determine the actual actor class and how it shall be instantiated.

Source
IndirectActorProducer.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IndirectActorProducer
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def actorClass: Class[_ <: Actor]

    This method is used by Props to determine the type of actor which will be created.

    This method is used by Props to determine the type of actor which will be created. This means that an instance of this IndirectActorProducer will be created in order to call this method during any call to Props#actorClass; it should be noted that such calls may performed during actor set-up before the actual actor’s instantiation, and that the instance created for calling actorClass is not necessarily reused later to produce the actor.

  2. abstract def produce(): Actor

    This factory method must produce a fresh actor instance upon each invocation.

    This factory method must produce a fresh actor instance upon each invocation. It is not permitted to return the same instance more than once.