Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import io.vertx.core.Handler
  2. import io.vertx.scala.ext.web.RoutingContext
  3.  
  4. class RCHandler(op:(RoutingContext) => Unit) extends Handler[RoutingContext] {
  5. override def handle(event: RoutingContext): Unit = {
  6. op(event)
  7. }
  8. }
  9.  
  10. object handler {
  11. implicit def func2handler(op:(RoutingContext) => Unit) = new RCHandler(op)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement