Example #1
0
 /** Gets a context associated with current thread */
 public static DapCtx ctx() {
   DapCtx context = CtxAssociator.getCtx();
   if (context == null) {
     context = create();
     setCtx(context);
   }
   return context;
 }
Example #2
0
 /** set DapCtx for current thread. */
 public void setSameCxtForCurrentThread() {
   DapCtx.setCtx(this);
 }