Code example for EventBus

Methods: postregister

    * WARNING: Caller is responsible for also unsubscribing to avoid leaking memory. 
    * @param observer 
   public void subscribe(Object observer) { 
      // Sends current state directly to listener when subscribing to sync up. InstancerStateChange(state, state, self));
   public void unsubscribe(Object observer) { 
   protected void setState(Instancer.State state) {
      InstancerStateChange change = new InstancerStateChange(this.state, state, self);
      this.state = state;;
Contextual code suggestions in your IDE  Get Codota for Java