Class Names
java.lang.Object
org.elasticsearch.common.inject.name.Names
public class Names
extends java.lang.Object
Utility methods for use with
@Named.-
Method Summary
Modifier and Type Method Description static voidbindProperties(Binder binder, java.util.Map<java.lang.String,java.lang.String> properties)Creates a constant binding to@Named(key)for each entry inproperties.static voidbindProperties(Binder binder, java.util.Properties properties)Creates a constant binding to@Named(key)for each property.static Namednamed(java.lang.String name)Creates aNamedannotation withnameas the value.
-
Method Details
-
named
Creates aNamedannotation withnameas the value. -
bindProperties
public static void bindProperties(Binder binder, java.util.Map<java.lang.String,java.lang.String> properties)Creates a constant binding to@Named(key)for each entry inproperties. -
bindProperties
Creates a constant binding to@Named(key)for each property. This method binds all properties including those inherited fromdefaults.
-