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

import com.google.gwt.inject.client.AbstractGinModule;
import org.realityforge.replicant.client.EntityChangeBroker;
import org.realityforge.replicant.client.EntityChangeBrokerImpl;
import org.realityforge.replicant.client.EntityRepository;
import org.realityforge.replicant.client.EntityRepositoryImpl;

/**
 * A simple GIN module that defines the repository and change broker services.
 */
public class ReplicantGinModule
  extends AbstractGinModule
{
  @Override
  protected void configure()
  {
    bind( EntityRepository.class ).to( EntityRepositoryImpl.class ).asEagerSingleton();
    bind( EntityChangeBroker.class ).to( EntityChangeBrokerImpl.class ).asEagerSingleton();
  }
}

@@ -348,16 +348,156 @@
 oryImpl;
+%0Aimport org.realityforge.replicant.client.EntitySubscriptionManager;%0Aimport org.realityforge.replicant.client.EntitySubscriptionManagerImpl;
 %0A%0A/**%0A *
@@ -864,14 +864,120 @@
 eton();%0A
+    bind( EntitySubscriptionManager.class ).to( EntitySubscriptionManagerImpl.class ).asEagerSingleton();%0A
   %7D%0A%7D%0A

Add SubscriptionManager to gin module