Exemplo n.º 1
0
 @Override
 public ApplicationContext getCurrentApplicationContext() {
   ThreadInfo ti = ThreadInfo.getCurrentThread();
   if (ti != null) {
     return ti.getApplicationContext();
   } else {
     return appCtx;
   }
 }