| Modifier and Type | Method and Description |
|---|---|
protected Resolution<?> |
InjectorImpl.findResolutionOrFail(ResolutionContext context)
Calls the defined handlers and returns the first
Resolution that is returned based on
the provided resolution context. |
| Modifier and Type | Method and Description |
|---|---|
protected Object[] |
InjectorImpl.resolveDependencies(ResolutionContext context,
Resolution<?> resolution)
Resolves the dependencies as defined by the given resolution.
|
protected <T> T |
InjectorImpl.runPostConstructHandlers(T instance,
ResolutionContext context,
Resolution<?> resolution)
Invokes the handler's post construct method when appropriate.
|
| Modifier and Type | Method and Description |
|---|---|
default Resolution<?> |
Handler.resolve(ResolutionContext context)
Resolves the context such that the object identified by the context's object identifier can be
instantiated or retrieved.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
Handler.postProcess(T object,
ResolutionContext context,
Resolution<?> resolution)
Processes the newly created object.
|
| Modifier and Type | Method and Description |
|---|---|
Resolution<?> |
SavedAnnotationsHandler.resolve(ResolutionContext context) |
Resolution<?> |
FactoryDependencyHandler.resolve(ResolutionContext context) |
Resolution<?> |
CyclicDependenciesDetector.resolve(ResolutionContext context) |
Resolution<?> |
SingletonStoreDependencyHandler.resolve(ResolutionContext context) |
Resolution<?> |
TypeSafeAnnotationHandler.resolve(ResolutionContext context) |
protected abstract Resolution<?> |
TypeSafeAnnotationHandler.resolveValueSafely(ResolutionContext context,
T annotation)
Resolves the value with the matched annotation, guaranteed to never be null.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleResolution<T>
Simple object resolution: wraps an already existing object that should be used as an
Resolution. |
class |
StandardInjection<T>
The injector's default instantiation method; injects constructor and fields.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class,WeakReference<Resolution>> |
InstantiationCache.entries |
| Modifier and Type | Method and Description |
|---|---|
Resolution<?> |
ProviderHandler.resolve(ResolutionContext context) |
Resolution<?> |
DirectInstantiationProvider.resolve(ResolutionContext context) |
Resolution<?> |
InstantiationCache.resolve(ResolutionContext context) |
<T> Resolution<T> |
StandardInjectionProvider.safeGet(Class<T> clazz) |
<T> Resolution<T> |
DefaultInjectionProvider.safeGet(Class<T> clazz) |
protected abstract <T> Resolution<T> |
DirectInstantiationProvider.safeGet(Class<T> clazz)
Gets the instantiation for the class or null if unavailable.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
InstantiationCache.postProcess(T object,
ResolutionContext context,
Resolution<?> resolution) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
PostConstructMethodInvoker.postProcess(T object,
ResolutionContext context,
Resolution<?> resolution) |
| Modifier and Type | Method and Description |
|---|---|
Resolution<?> |
AnnotationResolver.resolve(ResolutionContext context) |
Resolution<?> |
MockDependencyHandler.resolve(ResolutionContext context) |
Copyright © 2017. All rights reserved.