Package com.google.inject.name
Class Names
- java.lang.Object
-
- com.google.inject.name.Names
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbindProperties(Binder binder, Map<String,String> properties)Creates a constant binding to@Named(key)for each entry inproperties.static voidbindProperties(Binder binder, Properties properties)Creates a constant binding to@Named(key)for each property.static Namednamed(String name)Creates aNamedannotation withnameas the value.
-
-
-
Method Detail
-
bindProperties
public static void bindProperties(Binder binder, Map<String,String> properties)
Creates a constant binding to@Named(key)for each entry inproperties.
-
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 fromdefaults.
-
-