Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
com.google.inject.internal |
Guice (sounds like like "juice")
|
com.google.inject.spi |
Guice service provider interface
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<TypeConverterBinding> |
Injector.getTypeConverterBindings()
Returns a set containing all type converter bindings in the injector.
|
Modifier and Type | Field and Description |
---|---|
(package private) TypeConverterBinding |
InjectorImpl.ConvertedConstantBindingImpl.typeConverterBinding |
Modifier and Type | Field and Description |
---|---|
private java.util.List<TypeConverterBinding> |
InheritingState.converters |
Modifier and Type | Method and Description |
---|---|
TypeConverterBinding |
InheritingState.getConverter(java.lang.String stringValue,
TypeLiteral<?> type,
Errors errors,
java.lang.Object source) |
TypeConverterBinding |
State.getConverter(java.lang.String stringValue,
TypeLiteral<?> type,
Errors errors,
java.lang.Object source)
Returns the matching converter for
type , or null if none match. |
TypeConverterBinding |
InjectorImpl.ConvertedConstantBindingImpl.getTypeConverterBinding() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<TypeConverterBinding> |
InheritingState.getConvertersThisLevel() |
java.lang.Iterable<TypeConverterBinding> |
State.getConvertersThisLevel()
Returns all converters at this level only.
|
java.util.Set<TypeConverterBinding> |
InjectorImpl.getTypeConverterBindings() |
java.util.Set<TypeConverterBinding> |
InternalInjectorCreator.ToolStageInjector.getTypeConverterBindings() |
Modifier and Type | Method and Description |
---|---|
void |
InheritingState.addConverter(TypeConverterBinding typeConverterBinding) |
void |
State.addConverter(TypeConverterBinding typeConverterBinding) |
Errors |
Errors.ambiguousTypeConversion(java.lang.String stringValue,
java.lang.Object source,
TypeLiteral<?> type,
TypeConverterBinding a,
TypeConverterBinding b) |
Errors |
Errors.conversionError(java.lang.String stringValue,
java.lang.Object source,
TypeLiteral<?> type,
TypeConverterBinding typeConverterBinding,
java.lang.RuntimeException cause) |
Errors |
Errors.conversionTypeError(java.lang.String stringValue,
java.lang.Object source,
TypeLiteral<?> type,
TypeConverterBinding typeConverterBinding,
java.lang.Object converted) |
Errors |
Errors.converterReturnedNull(java.lang.String stringValue,
java.lang.Object source,
TypeLiteral<?> type,
TypeConverterBinding typeConverterBinding) |
java.lang.Boolean |
TypeConverterBindingProcessor.visit(TypeConverterBinding command) |
Constructor and Description |
---|
ConvertedConstantBindingImpl(InjectorImpl injector,
Key<T> key,
T value,
Binding<java.lang.String> originalBinding,
TypeConverterBinding typeConverterBinding) |
Modifier and Type | Method and Description |
---|---|
TypeConverterBinding |
ConvertedConstantBinding.getTypeConverterBinding()
Returns the type converter binding used to convert the constant.
|
Modifier and Type | Method and Description |
---|---|
V |
DefaultElementVisitor.visit(TypeConverterBinding typeConverterBinding) |
V |
ElementVisitor.visit(TypeConverterBinding binding)
Visit a registration of type converters for matching target types.
|