setupChunkQueueInterceptor();
}
static protected void setupChunkQueueInterceptor() throws Throwable {
DataFactory da = DataFactory.getInstance();
ChunkQueue chunkQueue = da.getEventQueue();
final Field fields[] = DataFactory.class.getDeclaredFields();
for (int i = 0; i < fields.length; ++i) {
if ("chunkQueue".equals(fields[i].getName())) {
Field f = fields[i];
f.setAccessible(true);
ChunkQueue ci = new ChunkQueueInterceptor(chunkQueue);
f.set(da, ci);
System.out.println("Adding QueueInterceptor");
break;
}
}