Class FieldInjectionPoint
java.lang.Object
build.codemodel.dependency.injection.FieldInjectionPoint
- All Implemented Interfaces:
InjectionPoint
An
InjectionPoint for a FieldDescriptor.- 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.build.codemodel.objectoriented.descriptor.FieldDescriptorObtains theFieldDescriptorfor which theFieldInjectionPointwas created.<T> TInject into theInjectionPointwith the necessary zero or more resolved actual parameterInjectionPoint.dependencies().static FieldInjectionPointof(build.codemodel.jdk.descriptor.JDKTypeDescriptor typeDescriptor, build.codemodel.objectoriented.descriptor.FieldDescriptor fieldDescriptor, Function<? super build.codemodel.foundation.descriptor.Traitable, Stream<build.codemodel.foundation.usage.AnnotationTypeUsage>> qualifierAnnotationExtractor) Creates aFieldInjectionPoint.build.codemodel.jdk.descriptor.JDKTypeDescriptorTheJDKTypeDescriptorin which theInjectionPointis defined
-
Method Details
-
typeDescriptor
public build.codemodel.jdk.descriptor.JDKTypeDescriptor typeDescriptor()Description copied from interface:InjectionPointTheJDKTypeDescriptorin which theInjectionPointis defined- Specified by:
typeDescriptorin interfaceInjectionPoint- Returns:
- the
JDKTypeDescriptor
-
dependencies
Description copied from interface:InjectionPointTheDependencys for the parameters required to be injected at theInjectionPoint, in the order in which they are required.- Specified by:
dependenciesin interfaceInjectionPoint- Returns:
- the
TypeUsages
-
inject
Description copied from interface:InjectionPointInject into theInjectionPointwith the necessary zero or more resolved actual parameterInjectionPoint.dependencies().- Specified by:
injectin interfaceInjectionPoint- Parameters:
target- the optional targetObjectinto which injection must occuractualParameters- the resolvedTypeUsagevalues to be injected- Returns:
- the result of the injection
-
fieldDescriptor
public build.codemodel.objectoriented.descriptor.FieldDescriptor fieldDescriptor()Obtains theFieldDescriptorfor which theFieldInjectionPointwas created.- Returns:
- the
FieldDescriptor
-
of
public static FieldInjectionPoint of(build.codemodel.jdk.descriptor.JDKTypeDescriptor typeDescriptor, build.codemodel.objectoriented.descriptor.FieldDescriptor fieldDescriptor, Function<? super build.codemodel.foundation.descriptor.Traitable, Stream<build.codemodel.foundation.usage.AnnotationTypeUsage>> qualifierAnnotationExtractor) Creates aFieldInjectionPoint.- Parameters:
typeDescriptor- theJDKTypeDescriptorfieldDescriptor- theFieldDescriptorqualifierAnnotationExtractor- aFunctionto extractQualifierAnnotationTypeUsages- Returns:
- a new
FieldInjectionPoint
-