use of org.aion.evtmgr.IEventMgr in project aion by aionnetwork.
the class BlockPropagationTest method loadEventMgr.
private IEventMgr loadEventMgr() {
ServiceLoader.load(EventMgrModule.class);
IEventMgr eventMgr = null;
Properties prop = new Properties();
prop.put(EventMgrModule.MODULENAME, "org.aion.evtmgr.impl.mgr.EventMgrA0");
try {
eventMgr = EventMgrModule.getSingleton(prop).getEventMgr();
} catch (Exception e) {
System.out.println("Failed to load the Event Manager Module");
}
return eventMgr;
}
Aggregations