code: public <S extends Service> AbstractModule service(Class<S> klass) {
          return factory(new DefaultFactory<S>(klass));
      }
docs: Registers a Service class to the module. This method is equivalent to
  <pre>
  MyModule module = new MyModule();
  {@code module.factory(new DefaultFactory<S>(MyService.class)); }
  </pre>