Skip to content

Commit

Permalink
import implicits for home
Browse files Browse the repository at this point in the history
  • Loading branch information
fommil committed Oct 25, 2012
1 parent e371832 commit e9bf46d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import spray.routing.Directives
import java.net.InetAddress
import akka.pattern.ask
import org.cakesolutions.akkapatterns.core.application.{ PoisonPill, GetImplementation, Implementation }
import spray.httpx.SprayJsonSupport
import spray.httpx.SprayJsonSupport._
import spray.httpx.marshalling.MetaMarshallers

case class SystemInfo(implementation: Implementation, host: String)
Expand All @@ -22,14 +22,13 @@ class HomeService(implicit val actorSystem: ActorSystem) extends Directives with
val futureInfo = (applicationActor ? GetImplementation()).mapTo[Implementation].map {
SystemInfo(_, InetAddress.getLocalHost.getCanonicalHostName)
}
// how to get this to implicitly return as a future marshaller of a SystemInfo marshaller?
futureInfo
}
}
} ~
path("poisonpill") {
post {
completeWith {
complete {
applicationActor ! PoisonPill()

"Goodbye"
Expand Down

0 comments on commit e9bf46d

Please sign in to comment.