title: Google Guice bind by annotation and/or package
body: <p>I have 3 beans in one package that I would like to be eager singletons.</p>
  
  <pre><code>public class Module1 implements Module {
      @Override
      public void configure(Binder binder) {
          binder.bind(Bean1.class).asEagerSingleton();
          binder.bind(Bean2.class).asEagerSingleton();
          binder.bind(Bean3.class).asEagerSingleton();
      }
  }
  </code></pre>
  
  <p>How can I configure them all as eager singletons without exact writing class name using Google Guice?</p>
  
  <p>I'm looking for something like marking Bean1, Bean2, Bean3 by some custom annotation or scanning by package name.</p>