package org.realityforge.replicant.client.runtime.gwt;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.Timer;
import javax.annotation.Nonnull;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.realityforge.replicant.client.runtime.DataLoaderEntry;
import org.realityforge.replicant.client.runtime.ReplicantClientSystemImpl;

@Singleton
public final class GwtReplicantClientSystemImpl
  extends ReplicantClientSystemImpl
{
  private final Timer _timer;

  @SuppressWarnings( "CdiInjectionPointsInspection" )
  @Inject
  public GwtReplicantClientSystemImpl( @Nonnull final EventBus eventBus,
                                       @Nonnull final DataLoaderEntry[] dataLoaders )
  {
    setDataLoaders( dataLoaders );
    _timer = new Timer()
    {
      @Override
      public void run()
      {
        converge();
      }
    };
    _timer.scheduleRepeating( CONVERGE_DELAY_IN_MS );
  }

  @Override
  protected void release()
  {
    cancelTimer();
    super.release();
  }

  private void cancelTimer()
  {
    _timer.cancel();
  }
}

@@ -53,53 +53,8 @@
 t;%0A%0A
-import com.google.gwt.event.shared.EventBus;%0A
 impo
@@ -559,81 +559,8 @@
 mpl(
- @Nonnull final EventBus eventBus,%0A                                      
  @No

Remove EventBus dependency