use of org.infinispan.factories.GlobalComponentRegistry in project infinispan by infinispan.
the class TaskManagerTest method setup.
@Override
protected void setup() throws Exception {
super.setup();
GlobalComponentRegistry gcr = cacheManager.getGlobalComponentRegistry();
taskManager = (TaskManagerImpl) gcr.getComponent(TaskManager.class);
taskEngine = new DummyTaskEngine();
taskManager.registerTaskEngine(taskEngine);
memoryLogger = new MemoryEventLogger(cacheManager, gcr.getTimeService());
gcr.getComponent(EventLogManager.class).replaceEventLogger(memoryLogger);
}
Aggregations