Record Class BeanDefinitionInjectionPoint.PropertyInjectionPoint<K>
java.lang.Object
java.lang.Record
io.micronaut.context.beans.definition.BeanDefinitionInjectionPoint.PropertyInjectionPoint<K>
- Type Parameters:
K- The element kind
- All Implemented Interfaces:
BeanDefinitionInjectionPoint<K>, AnnotationMetadataProvider, AnnotationSource
- Enclosing interface:
BeanDefinitionInjectionPoint<T>
public static record BeanDefinitionInjectionPoint.PropertyInjectionPoint<K>(K type, AnnotationMetadata annotationMetadata, String propertyName, String propertyPath)
extends Record
implements BeanDefinitionInjectionPoint<K>
Property-based injection point.
- Since:
- 5.1.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface BeanDefinitionInjectionPoint
BeanDefinitionInjectionPoint.BeanInjectionPoint<K>, BeanDefinitionInjectionPoint.BeanRegistrationInjectionPoint<K>, BeanDefinitionInjectionPoint.BeanRegistrationsInjectionPoint<K>, BeanDefinitionInjectionPoint.BeansInjectionPoint<K>, BeanDefinitionInjectionPoint.MapOfBeansInjectionPoint<K>, BeanDefinitionInjectionPoint.OptionalBeanInjectionPoint<K>, BeanDefinitionInjectionPoint.ParameterInjectionPoint<K>, BeanDefinitionInjectionPoint.PropertyInjectionPoint<K>, BeanDefinitionInjectionPoint.StreamOfBeansInjectionPoint<K>, BeanDefinitionInjectionPoint.ValueInjectionPoint<K> -
Field Summary
Fields inherited from interface AnnotationSource
EMPTYFields inherited from interface BeanDefinitionInjectionPoint
ANNOTATION_METADATA, BEAN_TYPE, TYPE_MEMBER -
Constructor Summary
ConstructorsConstructorDescriptionPropertyInjectionPoint(K type, AnnotationMetadata annotationMetadata, String propertyName, String propertyPath) Creates an instance of aPropertyInjectionPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationMetadatarecord component.final booleanIndicates whether some other object is "equal to" this one.default AnnotationMetadataReturns the annotation metadata associated with this element.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertyNamerecord component.Returns the value of thepropertyPathrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from interface AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Constructor Details
-
PropertyInjectionPoint
public PropertyInjectionPoint(K type, AnnotationMetadata annotationMetadata, String propertyName, String propertyPath) Creates an instance of aPropertyInjectionPointrecord class.- Parameters:
type- the value for thetyperecord componentannotationMetadata- the value for theannotationMetadatarecord componentpropertyName- the value for thepropertyNamerecord componentpropertyPath- the value for thepropertyPathrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceBeanDefinitionInjectionPoint<K>- Returns:
- the value of the
typerecord component
-
annotationMetadata
Returns the value of theannotationMetadatarecord component.- Returns:
- the value of the
annotationMetadatarecord component
-
propertyName
Returns the value of thepropertyNamerecord component.- Returns:
- the value of the
propertyNamerecord component
-
propertyPath
Returns the value of thepropertyPathrecord component.- Returns:
- the value of the
propertyPathrecord component
-
getAnnotationMetadata
Returns the annotation metadata associated with this element.- Specified by:
getAnnotationMetadatain interfaceAnnotationMetadataProvider- Returns:
- The annotation metadata associated with this element
-