Search in sources :

Example 1 with IEventMgr

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;
}
Also used : IEventMgr(org.aion.evtmgr.IEventMgr) Properties(java.util.Properties)

Aggregations

Properties (java.util.Properties)1 IEventMgr (org.aion.evtmgr.IEventMgr)1