core/src/com/google/inject/name/Names.java
public static void bindProperties(Binder binder, Properties properties) {
    binder = binder.skipSources(Names.class);

    // use enumeration to include the default properties
    for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements(); ) {
      String propertyName = (String) e.nextElement();
      String value = properties.getProperty(propertyName);
      binder.bind(Key.get(String.class, new NamedImpl(propertyName))).toInstance(value);
    }
  }
public static void bindProperties(Binder binder, Properties properties) {
    binder = binder.skipSources(Names.class);

    // use enumeration to include the default properties
    for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements(); ) {
      String propertyName = (String) e.nextElement();
      String value = properties.getProperty(propertyName);
      binder.bind(Key.get(String.class, new NamedImpl(propertyName))).toInstance(value);
    }
  }
public static void bindProperties ( Binder binder , Properties properties ) { binder = binder . skipSources ( Names . class ) ; // use enumeration to include the default properties for ( Enumeration < ? > e = properties . propertyNames ( ) ; e . hasMoreElements ( ) ; ) { String propertyName = ( String ) e . nextElement ( ) ; String value = properties . getProperty ( propertyName ) ; binder . bind ( Key . get ( String . class , new NamedImpl ( propertyName ) ) ) . toInstance ( value ) ; } }
Creates a constant binding to {@code @Named(key)} for each property. This method binds all
properties including those inherited from {@link Properties#defaults defaults}.
Creates a constant binding to {