|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.inject.name.Names
public class Names
Utility methods for use with @
Named
.
Method Summary | |
---|---|
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 in
properties . |
static void |
bindProperties(Binder binder,
java.util.Properties properties)
Creates a constant binding to @Named(key) for each property. |
static Named |
named(java.lang.String name)
Creates a Named annotation with name as the value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Named named(java.lang.String name)
Named
annotation with name
as the value.
public static void bindProperties(Binder binder, java.util.Map<java.lang.String,java.lang.String> properties)
@Named(key)
for each entry in
properties
.
public static void bindProperties(Binder binder, java.util.Properties properties)
@Named(key)
for each property. This
method binds all properties including those inherited from
defaults
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |