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 void
bindProperties(Binder binder, Map<String,String> properties)
Creates a constant binding to@Named(key)
for each entry inproperties
.static void
bindProperties(Binder binder, Properties properties)
Creates a constant binding to@Named(key)
for each property.static Named
named(String name)
Creates aNamed
annotation withname
as 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
.
-
-