extensions/assistedinject/src/com/google/inject/assistedinject/FactoryModuleBuilder.java
public <F> Module build(TypeLiteral<F> factoryInterface) {
    return build(Key.get(factoryInterface));
  }
public <F> Module build(TypeLiteral<F> factoryInterface) {
    return build(Key.get(factoryInterface));
  }
See the factory configuration examples at {@link FactoryModuleBuilder}.