Home | History | Annotate | Download | only in guice
      1 package test.guice;
      2 
      3 import com.google.inject.Binder;
      4 import com.google.inject.Module;
      5 import com.google.inject.Singleton;
      6 
      7 public class GuiceExampleModule implements Module {
      8 
      9   @Override
     10   public void configure(Binder binder) {
     11     binder.bind(ISingleton.class).to(ExampleSingleton.class).in(Singleton.class);
     12   }
     13 
     14 }
     15