com.google.inject.name

Class Names



  • public class Names
    extends Object
    Utility methods for use with @Named.
    Author:
    crazybob@google.com (Bob Lee)
    • Method Detail

      • named

        public static Named named(String name)
        Creates a Named annotation with name as the value.
      • bindProperties

        public static void bindProperties(Binder binder,
                          Map<String,String> properties)
        Creates a constant binding to @Named(key) for each entry in properties.
      • bindProperties

        public static void bindProperties(Binder binder,
                          Properties properties)
        Creates a constant binding to @Named(key) for each property. This method binds all properties including those inherited from defaults.

Copyright © 2006-2014 Google, Inc.. All Rights Reserved.