Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F76664305
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
Fri, Aug 9, 17:35
Size
491 B
Mime Type
text/x-c++
Expires
Sun, Aug 11, 17:35 (2 d)
Engine
blob
Format
Raw Data
Handle
19744059
Attached To
R2664 SHRINE MedCo Fork
Boot.scala
View Options
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
Log In to Comment