|
Akka/Scala example source code file (Activator.scala)
The Activator.scala Akka example source codepackage docs.osgi case object SomeMessage class SomeActor extends akka.actor.Actor { def receive = { case SomeMessage => } } //#Activator import akka.actor.{ Props, ActorSystem } import org.osgi.framework.BundleContext import akka.osgi.ActorSystemActivator class Activator extends ActorSystemActivator { def configure(context: BundleContext, system: ActorSystem) { // optionally register the ActorSystem in the OSGi Service Registry registerService(context, system) val someActor = system.actorOf(Props[SomeActor], name = "someName") someActor ! SomeMessage } } //#Activator Other Akka source code examplesHere is a short list of links related to this Akka Activator.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.