| 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. |
protected Object |
InjectorImpl.resolveContext(ResolutionContext context)
Returns the object as defined by the given context.
|
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.
|
protected void |
InjectorImpl.throwForUnexpectedNullDependency(ResolutionContext context)
Called when a resolved dependency is null, this method may throw an exception in the cases when this
should not happen.
|
| Modifier and Type | Method and Description |
|---|---|
ResolutionContext |
ResolutionContext.createChildContext(ObjectIdentifier identifier)
Creates a context for the given identifier with this context as parent.
|
| Modifier and Type | Method and Description |
|---|---|
List<ResolutionContext> |
ResolutionContext.getParents() |
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
Handler.postProcess(T object,
ResolutionContext context,
Resolution<?> resolution)
Processes the newly created object.
|
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 |
|---|---|
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 | Method and Description |
|---|---|
<T> T |
InstantiationCache.postProcess(T object,
ResolutionContext context,
Resolution<?> resolution) |
Resolution<?> |
ProviderHandler.resolve(ResolutionContext context) |
Resolution<?> |
DirectInstantiationProvider.resolve(ResolutionContext context) |
Resolution<?> |
InstantiationCache.resolve(ResolutionContext context) |
protected boolean |
InstantiationCache.shouldCacheMethod(ResolutionContext context)
Returns whether the instantiation method from the given context should be cached.
|
| 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.