Trait

com.github.scalaspring.akka

SpringActor

Related Doc: package akka

Permalink

trait SpringActor extends Actor with SpringActorRefFactory

Extend this trait to add factory helper methods to actors.

Self Type
SpringActor with Actor
Linear Supertypes
SpringActorRefFactory, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpringActor
  2. SpringActorRefFactory
  3. Actor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Abstract Value Members

  1. abstract def receive: akka.actor.Actor.Receive

    Permalink
    Definition Classes
    Actor

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def actorOf(props: Props, name: String)(implicit factory: ActorRefFactory): ActorRef

    Permalink
    Definition Classes
    SpringActorRefFactory
  5. def actorOf(props: Props)(implicit factory: ActorRefFactory): ActorRef

    Permalink
    Definition Classes
    SpringActorRefFactory
  6. def actorOf(beanName: String, args: Any*)(implicit factory: ActorRefFactory): ActorRef

    Permalink

    Creates a Spring-backed actor reference by name with optional constructor arguments.

    Creates a Spring-backed actor reference by name with optional constructor arguments.

    This factory method is typically used to disambiguate in the case of multiple beans defined for the same type. If this is not the case, consider using the preferred type-based reference factory methods.

    Example:

    @Bean
    def myActor = actorOf("myActorBean2")
    beanName

    name of the underlying bean

    args

    optional constructor arguments

    Definition Classes
    SpringActorRefFactory
  7. def actorOf[T <: Actor](args: Any*)(implicit arg0: ClassTag[T], factory: ActorRefFactory): ActorRef

    Permalink

    Creates a Spring-backed actor reference by type with constructor arguments.

    Creates a Spring-backed actor reference by type with constructor arguments.

    Looks up the Spring bean of the given type and constructor arguments (using Spring's BeanFactory.getBean(class, args)). This factory method is typically used when the target actor needs to be customized per consumer during configuration.

    Example:

    val someString = "some string"
    
    @Bean
    def myActor = actorOf[MyActor](someString)
    Definition Classes
    SpringActorRefFactory
  8. def actorOf[T <: Actor](implicit arg0: ClassTag[T], factory: ActorRefFactory): ActorRef

    Permalink

    Creates a Spring-backed actor reference by type.

    Creates a Spring-backed actor reference by type.

    Looks up the Spring bean of the given type, which is expected to be an Actor. This factory method satisfies most use cases and is appropriate when a single actor of a given type is defined.

    Example:

    @Bean
    def myActor = actorOf[MyActor]
    Definition Classes
    SpringActorRefFactory
  9. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  10. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  11. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  12. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  13. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. implicit val factory: ActorContext

    Permalink
    Attributes
    protected
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def generateActorName[T <: Actor](implicit arg0: ClassTag[T]): String

    Permalink
    Attributes
    protected
    Definition Classes
    SpringActorRefFactory
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  29. def postStop(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  30. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  31. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  32. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  33. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  34. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SpringActorRefFactory

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped