Code example for EventBus

Methods: register

0
  private ActualNoteTracker noteTracker;
 
  @Inject 
  public void init() 
  { 
    eventBus.register(this);
    sessionTracker = new InactiveSessionTracker(taskQueue);
    noteTracker = new ActualNoteTracker(eventBus, taskQueue);
  } 
 
  public void addNote(Note note)
  { 
    sessionTracker.addNote(note);
  } 
 
  public void startTracking(Session incomingSession, boolean locationLess)
  { 
    this.session = incomingSession;
    sessionTracker = new ActualSessionTracker(eventBus, session, taskQueue, settingsHelper, metadataHelper, sessions, locationLess);
    sessionTracker.save(session);
Experience pair programming with AI  Get Codota for Java