Top Description Constructors Methods
com.google.inject.name

public Class Names

extends Object
Class Inheritance
Imports
com.google.inject.Binder, .Key, java.util.Enumeration, .Map, .Properties

Utility methods for use with @Named.
Author
[email protected] (Bob Lee)

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
bindProperties(Binder binder, Map<String, String> properties)

Creates a constant binding to @Named(key) for each entry in properties.

public static void
bindProperties(Binder binder, Properties properties)

Creates a constant binding to @Named(key) for each property.

public static Named
named(String name)

Creates a Named annotation with name as the value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Namesback to summary
private Names()

Method Detail

bindPropertiesback to summary
public static void bindProperties(Binder binder, Map<String, String> properties)

Creates a constant binding to @Named(key) for each entry in properties.

bindPropertiesback to summary
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.

namedback to summary
public static Named named(String name)

Creates a Named annotation with name as the value.