Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import io.vertx.core.Handler
- import io.vertx.scala.ext.web.RoutingContext
- class RCHandler(op:(RoutingContext) => Unit) extends Handler[RoutingContext] {
- override def handle(event: RoutingContext): Unit = {
- op(event)
- }
- }
- object handler {
- implicit def func2handler(op:(RoutingContext) => Unit) = new RCHandler(op)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement