Page MenuHomec4science

Boot.scala
No OneTemporary

File Metadata

Created
Tue, Aug 27, 16:08

Boot.scala

package net.shrine.dashboard
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("DashboardActors",DashboardConfigSource.config)
// the service actor replies to incoming HttpRequests
val serviceActor = system.actorOf(Props[DashboardServiceActor])
}

Event Timeline