public interface Injector<I>
Modifier and Type | Method and Description |
---|---|
void |
close() |
I |
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) |
void |
release(Object instance) |
@Nonnull <T> T getInstance(@Nonnull Class<T> type) throws InstanceNotFoundException
InstanceNotFoundException
@Nonnull <T> T getInstance(@Nonnull Class<T> type, @Nonnull Annotation qualifier) throws InstanceNotFoundException
InstanceNotFoundException
@Nonnull <T> Collection<T> getInstances(@Nonnull Class<T> type) throws InstanceNotFoundException
InstanceNotFoundException
@Nonnull <T> Collection<Qualified<T>> getQualifiedInstances(@Nonnull Class<T> type) throws InstanceNotFoundException
InstanceNotFoundException
void injectMembers(@Nonnull Object instance) throws MembersInjectionException
MembersInjectionException
void close()