コード例 #1
0
ファイル: F.java プロジェクト: narekgevorgyan/Play20
 public void onReceive(Object o) {
   Function f = (Function) (((Tuple3) o)._1);
   Object a = (Object) (((Tuple3) o)._2);
   play.mvc.Http.Context context = (play.mvc.Http.Context) (((Tuple3) o)._3);
   try {
     play.mvc.Http.Context.current.set(context);
     getSender().tell(Either.Right(f.apply(a)));
   } catch (Throwable t) {
     getSender().tell(Either.Left(t));
   } finally {
     play.mvc.Http.Context.current.remove();
   }
 }