Interface InjectionPoint
- All Known Implementing Classes:
ConstructorInjectionPoint, FieldInjectionPoint, MethodInjectionPoint
public interface InjectionPoint
Describes a point with in a
JDKTypeDescriptor in which Dependencys may be injected.- Since:
- Oct-2024
- Author:
- brian.oliver
-
Method Summary
Modifier and TypeMethodDescriptionTheDependencys for the parameters required to be injected at theInjectionPoint, in the order in which they are required.<T> TInject into theInjectionPointwith the necessary zero or more resolved actual parameterdependencies().build.codemodel.jdk.descriptor.JDKTypeDescriptorTheJDKTypeDescriptorin which theInjectionPointis defined
-
Method Details
-
typeDescriptor
build.codemodel.jdk.descriptor.JDKTypeDescriptor typeDescriptor()TheJDKTypeDescriptorin which theInjectionPointis defined- Returns:
- the
JDKTypeDescriptor
-
dependencies
Stream<Dependency> dependencies()TheDependencys for the parameters required to be injected at theInjectionPoint, in the order in which they are required.- Returns:
- the
TypeUsages
-
inject
Inject into theInjectionPointwith the necessary zero or more resolved actual parameterdependencies().- Parameters:
target- the optional targetObjectinto which injection must occuractualParameters- the resolvedTypeUsagevalues to be injected- Returns:
- the result of the injection
- Throws:
InjectionFailedException- when injection fails
-