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