Top Description Fields Constructors Methods
com.google.inject.internal

pack-priv final Class MissingImplementationErrorHints

extends Object
Class Inheritance
Static Imports
com.google.common.collect.ImmutableList.toImmutableList, java.lang.Math.min

Helper class to find hints for MissingImplementationError.

Field Summary

Modifier and TypeField and Description
private static final ImmutableSet<Class<?>>
COMMON_AMBIGUOUS_TYPES

If the key is unknown and it is one of these types, it generally means there is a missing annotation.

private static final int
MAX_MATCHING_TYPES_REPORTED

When a binding is not found, show at most this many bindings with the same type

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
formatSuggestion(Key<?> key, Binding<?> binding)

pack-priv static <T> ImmutableList<String>
getSuggestions(Key<T> key, Injector injector)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COMMON_AMBIGUOUS_TYPESback to summary
private static final ImmutableSet<Class<?>> COMMON_AMBIGUOUS_TYPES

If the key is unknown and it is one of these types, it generally means there is a missing annotation.

MAX_MATCHING_TYPES_REPORTEDback to summary
private static final int MAX_MATCHING_TYPES_REPORTED

When a binding is not found, show at most this many bindings with the same type

Constructor Detail

MissingImplementationErrorHintsback to summary
private MissingImplementationErrorHints()

Method Detail

formatSuggestionback to summary
private static String formatSuggestion(Key<?> key, Binding<?> binding)
getSuggestionsback to summary
pack-priv static <T> ImmutableList<String> getSuggestions(Key<T> key, Injector injector)