public class

Names

extends Object
java.lang.Object
   ↳ com.google.inject.name.Names

Class Overview

Utility methods for use with @Named.

Summary

Public Methods
static void bindProperties(Binder binder, Map<String, String> properties)
Creates a constant binding to @Named(key) for each entry in properties.
static void bindProperties(Binder binder, Properties properties)
Creates a constant binding to @Named(key) for each property.
static Named named(String name)
Creates a Named annotation with name as the value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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. This method binds all properties including those inherited from defaults.

public static Named named (String name)

Creates a Named annotation with name as the value.