Constructor and Description |
---|
GuiceInjector(Injector delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Injector |
getDelegateInjector() |
<T> T |
getInstance(Class<T> type) |
<T> T |
getInstance(Class<T> type,
Annotation qualifier) |
<T> Collection<T> |
getInstances(Class<T> type) |
<T> Collection<Qualified<T>> |
getQualifiedInstances(Class<T> type) |
void |
injectMembers(Object instance) |
@Nonnull public <T> T getInstance(@Nonnull Class<T> type) throws InstanceNotFoundException
getInstance
in interface Injector<Injector>
InstanceNotFoundException
@Nonnull public <T> T getInstance(@Nonnull Class<T> type, @Nonnull Annotation qualifier) throws InstanceNotFoundException
getInstance
in interface Injector<Injector>
InstanceNotFoundException
@Nonnull public <T> Collection<T> getInstances(@Nonnull Class<T> type) throws InstanceNotFoundException
getInstances
in interface Injector<Injector>
InstanceNotFoundException
@Nonnull public <T> Collection<Qualified<T>> getQualifiedInstances(@Nonnull Class<T> type) throws InstanceNotFoundException
getQualifiedInstances
in interface Injector<Injector>
InstanceNotFoundException
public void injectMembers(@Nonnull Object instance) throws MembersInjectionException
injectMembers
in interface Injector<Injector>
MembersInjectionException
@Nonnull public Injector getDelegateInjector()
getDelegateInjector
in interface Injector<Injector>