private CommandBlocker addCommandBlocker(Cache cache) {
   InterceptorChain chain = TestingUtil.extractComponent(cache, InterceptorChain.class);
   CommandBlocker blocker = new CommandBlocker();
   chain.addInterceptor(blocker, 0);
   return blocker;
 }
Esempio n. 2
0
 public void addInterceptor(CommandInterceptor i, int position) {
   invoker.addInterceptor(i, position);
 }