public interface Injector<I>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
I |
getDelegateInjector() |
<T> T |
getInstance(java.lang.Class<T> type) |
<T> T |
getInstance(java.lang.Class<T> type,
java.lang.annotation.Annotation qualifier) |
<T> java.util.Collection<T> |
getInstances(java.lang.Class<T> type) |
<T> java.util.Collection<Qualified<T>> |
getQualifiedInstances(java.lang.Class<T> type) |
void |
injectMembers(java.lang.Object instance) |
void |
release(java.lang.Object instance) |
@Nonnull
<T> T getInstance(@Nonnull
java.lang.Class<T> type)
throws InstanceNotFoundException
InstanceNotFoundException@Nonnull
<T> T getInstance(@Nonnull
java.lang.Class<T> type,
@Nonnull
java.lang.annotation.Annotation qualifier)
throws InstanceNotFoundException
InstanceNotFoundException@Nonnull
<T> java.util.Collection<T> getInstances(@Nonnull
java.lang.Class<T> type)
throws InstanceNotFoundException
InstanceNotFoundException@Nonnull <T> java.util.Collection<Qualified<T>> getQualifiedInstances(@Nonnull java.lang.Class<T> type) throws InstanceNotFoundException
InstanceNotFoundExceptionvoid injectMembers(@Nonnull
java.lang.Object instance)
throws MembersInjectionException
MembersInjectionException@Nonnull I getDelegateInjector()
void release(@Nonnull
java.lang.Object instance)
void close()