public abstract class DelegatingInjector extends Object implements com.google.inject.Injector
Injector.
This class simply delegates to an underlying injector, and is useful for subclasses of
Injector that only want to modify partial behavior and delegate the rest.
Warning: This class is part of the internal implementation for Guice
lifecycle containers and should not be used directly by consumers. Instead use
LifecycleContainer and GuiceLifecycleContainers.
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingInjector(com.google.inject.Injector injector) |
| Modifier and Type | Method and Description |
|---|---|
com.google.inject.Injector |
createChildInjector(Iterable<? extends com.google.inject.Module> modules) |
com.google.inject.Injector |
createChildInjector(com.google.inject.Module... modules) |
<T> List<com.google.inject.Binding<T>> |
findBindingsByType(com.google.inject.TypeLiteral<T> type) |
Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> |
getAllBindings() |
<T> com.google.inject.Binding<T> |
getBinding(Class<T> type) |
<T> com.google.inject.Binding<T> |
getBinding(com.google.inject.Key<T> key) |
Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> |
getBindings() |
<T> com.google.inject.Binding<T> |
getExistingBinding(com.google.inject.Key<T> key) |
<T> T |
getInstance(Class<T> type) |
<T> T |
getInstance(com.google.inject.Key<T> key) |
<T> com.google.inject.MembersInjector<T> |
getMembersInjector(Class<T> type) |
<T> com.google.inject.MembersInjector<T> |
getMembersInjector(com.google.inject.TypeLiteral<T> typeLiteral) |
com.google.inject.Injector |
getParent() |
<T> com.google.inject.Provider<T> |
getProvider(Class<T> type) |
<T> com.google.inject.Provider<T> |
getProvider(com.google.inject.Key<T> key) |
Map<Class<? extends Annotation>,com.google.inject.Scope> |
getScopeBindings() |
Set<com.google.inject.spi.TypeConverterBinding> |
getTypeConverterBindings() |
void |
injectMembers(Object instance) |
protected DelegatingInjector(com.google.inject.Injector injector)
public void injectMembers(Object instance)
injectMembers in interface com.google.inject.Injectorpublic <T> com.google.inject.MembersInjector<T> getMembersInjector(com.google.inject.TypeLiteral<T> typeLiteral)
getMembersInjector in interface com.google.inject.Injectorpublic <T> com.google.inject.MembersInjector<T> getMembersInjector(Class<T> type)
getMembersInjector in interface com.google.inject.Injectorpublic Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> getBindings()
getBindings in interface com.google.inject.Injectorpublic Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> getAllBindings()
getAllBindings in interface com.google.inject.Injectorpublic <T> com.google.inject.Binding<T> getBinding(com.google.inject.Key<T> key)
getBinding in interface com.google.inject.Injectorpublic <T> com.google.inject.Binding<T> getBinding(Class<T> type)
getBinding in interface com.google.inject.Injectorpublic <T> com.google.inject.Binding<T> getExistingBinding(com.google.inject.Key<T> key)
getExistingBinding in interface com.google.inject.Injectorpublic <T> List<com.google.inject.Binding<T>> findBindingsByType(com.google.inject.TypeLiteral<T> type)
findBindingsByType in interface com.google.inject.Injectorpublic <T> com.google.inject.Provider<T> getProvider(com.google.inject.Key<T> key)
getProvider in interface com.google.inject.Injectorpublic <T> com.google.inject.Provider<T> getProvider(Class<T> type)
getProvider in interface com.google.inject.Injectorpublic <T> T getInstance(com.google.inject.Key<T> key)
getInstance in interface com.google.inject.Injectorpublic <T> T getInstance(Class<T> type)
getInstance in interface com.google.inject.Injectorpublic com.google.inject.Injector getParent()
getParent in interface com.google.inject.Injectorpublic com.google.inject.Injector createChildInjector(Iterable<? extends com.google.inject.Module> modules)
createChildInjector in interface com.google.inject.Injectorpublic com.google.inject.Injector createChildInjector(com.google.inject.Module... modules)
createChildInjector in interface com.google.inject.Injectorpublic Map<Class<? extends Annotation>,com.google.inject.Scope> getScopeBindings()
getScopeBindings in interface com.google.inject.Injectorpublic Set<com.google.inject.spi.TypeConverterBinding> getTypeConverterBindings()
getTypeConverterBindings in interface com.google.inject.InjectorCopyright © 2020 Cerner Innovation, Inc.. All rights reserved.