Generated by
JDiff

Interface com.google.inject.Injector

Documentation changed from old to new.

Added Methods
Injector createChildInjector(Module[]) Returns a new injector that inherits all state from this injector.
Injector createChildInjector(Iterable<Module>) Returns a new injector that inherits all state from this injector.
(Map<Key<?>, Binding<?>>getAllBindings() Returns a snapshot of this injector's bindings, both explicit and just-in-time.
Binding<T> getBinding(Class<T>) Returns the binding for the given type.
Binding<T> getExistingBinding(Key<T>) Returns the binding if it already exists, or null if does not exist.
MembersInjector<T> getMembersInjector(TypeLiteral<T>) Returns the members injector used to inject dependencies into methods and fields on instances of the given type {@code T}.
MembersInjector<T> getMembersInjector(Class<T>) Returns the members injector used to inject dependencies into methods and fields on instances of the given type {@code T}.
Injector getParent() Returns this injector's parent, or {@code null} if this is a top-level injector.
(Map<Class<Annotation>, Scope>getScopeBindings() Returns a map containing all scopes in the injector.
 

Changed Methods
List<Binding<T>> findBindingsByType(TypeLiteral<T>) Documentation changed from old to new.
Returns all explicit bindings for {@code type}.
Map<Key<?>, Binding<?>> getBindings() Documentation changed from old to new.
Returns this injector's explicit bindings.
void injectMembers(Object) Documentation changed from old to new.
Injects dependencies into the fields and methods of {@code instance}.
Binding<T> getBinding(Key<T>) Documentation changed from old to new.
Returns the binding for the given injection key.
T getInstance(Key<T>) Documentation changed from old to new.
Returns the appropriate instance for the given injection key; equivalent to {@code getProvider(key).get()}.
T getInstance(Class<T>) Documentation changed from old to new.
Returns the appropriate instance for the given injection type; equivalent to {@code getProvider(type).get()}.
Provider<T> getProvider(Key<T>) Documentation changed from old to new.
Returns the provider used to obtain instances for the given injection key.
Provider<T> getProvider(Class<T>) Documentation changed from old to new.
Returns the provider used to obtain instances for the given type.