| Constructor and Description |
|---|
GuiceInjector(org.codehaus.griffon.runtime.injection.InstanceTracker instanceTracker) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Injector |
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) |
public GuiceInjector(@Nonnull
org.codehaus.griffon.runtime.injection.InstanceTracker instanceTracker)
@Nonnull
public <T> T getInstance(@Nonnull
java.lang.Class<T> type)
throws InstanceNotFoundException
getInstance in interface Injector<Injector>InstanceNotFoundException@Nonnull
public <T> T getInstance(@Nonnull
java.lang.Class<T> type,
@Nonnull
java.lang.annotation.Annotation qualifier)
throws InstanceNotFoundException
getInstance in interface Injector<Injector>InstanceNotFoundException@Nonnull
public <T> java.util.Collection<T> getInstances(@Nonnull
java.lang.Class<T> type)
throws InstanceNotFoundException
getInstances in interface Injector<Injector>InstanceNotFoundException@Nonnull public <T> java.util.Collection<Qualified<T>> getQualifiedInstances(@Nonnull java.lang.Class<T> type) throws InstanceNotFoundException
getQualifiedInstances in interface Injector<Injector>InstanceNotFoundExceptionpublic void injectMembers(@Nonnull
java.lang.Object instance)
throws MembersInjectionException
injectMembers in interface Injector<Injector>MembersInjectionException@Nonnull public Injector getDelegateInjector()
getDelegateInjector in interface Injector<Injector>public void release(@Nonnull
java.lang.Object instance)