Page MenuHomec4science

Boot.scala
No OneTemporary

File Metadata

Created
Fri, Aug 9, 17:35

Boot.scala

package net.shrine.admin
import akka.actor.{Props, ActorSystem}
import spray.servlet.WebBoot
// this class is instantiated by the servlet initializer
// it needs to have a default constructor and implement
// the spray.servlet.WebBoot trait
class Boot extends WebBoot {
// we need an ActorSystem to host our application in
val system = ActorSystem("sprayServer")
// the service actor replies to incoming HttpRequests
val serviceActor = system.actorOf(Props[AdminServiceActor])
}

Event Timeline