inject

abstract fun inject(targetObject: Any, accessibleObject: AccessibleObject, annotation: AnnotationType, context: InjectionContext)

Fetches the specified resource and injects it into the given target object using the given accessible object (field or method).

Parameters

targetObject

the target object which shall be injected with the resource

accessibleObject

the target object's property which shall be used for the injection

annotation

the annotation of the accessible object

context

the context in which th injection shall take place; specialized Injector implementations define what context they need