public SingleService( String serviceName) {
this.serviceName = serviceName;
final OLATResourceable ores = OresHelper.createOLATResourceableType(SingleService.class.getCanonicalName());
EventBus eventBus = CoordinatorManager.getCoordinator().getEventBus();
// first fire event, second register as listener because we want not to receive our 'Started event'
eventBus.fireEventToListenersOf(new ServiceStartedEvent(serviceName), ores );
log.debug("fireEventToListenersOf serviceName=" + serviceName + " ores=" + ores.getResourceableTypeName() + ":" + ores.getResourceableId());
eventBus.registerFor(this, null, ores);
}
public void event(Event event) {