Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79669779
Boot.scala
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Aug 27, 16:09
Size
532 B
Mime Type
text/x-c++
Expires
Thu, Aug 29, 16:09 (2 d)
Engine
blob
Format
Raw Data
Handle
20136038
Attached To
R2664 SHRINE MedCo Fork
Boot.scala
View Options
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
Log In to Comment