Record Class BeanDefinitionInjectionPoint.ValueInjectionPoint<K>
java.lang.Object
java.lang.Record
io.micronaut.context.beans.definition.BeanDefinitionInjectionPoint.ValueInjectionPoint<K>
- Type Parameters:
K- The element kind
- All Implemented Interfaces:
BeanDefinitionInjectionPoint<K>, AnnotationMetadataProvider, AnnotationSource
- Enclosing interface:
BeanDefinitionInjectionPoint<T>
public static record BeanDefinitionInjectionPoint.ValueInjectionPoint<K>(K type, AnnotationMetadata annotationMetadata, String value, boolean hasExpression)
extends Record
implements BeanDefinitionInjectionPoint<K>
Value 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
ConstructorsConstructorDescriptionValueInjectionPoint(K type, AnnotationMetadata annotationMetadata, String value, boolean hasExpression) Creates an instance of aValueInjectionPointrecord 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.booleanReturns the value of thehasExpressionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord 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
-
ValueInjectionPoint
public ValueInjectionPoint(K type, AnnotationMetadata annotationMetadata, String value, boolean hasExpression) Creates an instance of aValueInjectionPointrecord class.- Parameters:
type- the value for thetyperecord componentannotationMetadata- the value for theannotationMetadatarecord componentvalue- the value for thevaluerecord componenthasExpression- the value for thehasExpressionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
hasExpression
public boolean hasExpression()Returns the value of thehasExpressionrecord component.- Returns:
- the value of the
hasExpressionrecord component
-
getAnnotationMetadata
Returns the annotation metadata associated with this element.- Specified by:
getAnnotationMetadatain interfaceAnnotationMetadataProvider- Returns:
- The annotation metadata associated with this element
-