Record Class BeanDefinitionInjectionPoint.OptionalBeanInjectionPoint<K>
java.lang.Object
java.lang.Record
io.micronaut.context.beans.definition.BeanDefinitionInjectionPoint.OptionalBeanInjectionPoint<K>
- Type Parameters:
K- The element kind
- All Implemented Interfaces:
BeanDefinitionInjectionPoint<K>, io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource
- Enclosing interface:
BeanDefinitionInjectionPoint<T>
public static record BeanDefinitionInjectionPoint.OptionalBeanInjectionPoint<K>(K type, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, K beanType)
extends Record
implements BeanDefinitionInjectionPoint<K>
Optional bean injection point.
- Since:
- 5.1.0
-
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 io.micronaut.core.annotation.AnnotationSource
EMPTYFields inherited from interface BeanDefinitionInjectionPoint
ANNOTATION_METADATA, BEAN_TYPE, TYPE_MEMBER -
Constructor Summary
ConstructorsConstructorDescriptionOptionalBeanInjectionPoint(K type, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, K beanType) Creates an instance of aOptionalBeanInjectionPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.annotation.AnnotationMetadataReturns the value of theannotationMetadatarecord component.beanType()Returns the value of thebeanTyperecord component.final booleanIndicates whether some other object is "equal to" this one.default io.micronaut.core.annotation.AnnotationMetadataReturns the annotation metadata associated with this element.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.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Constructor Details
-
OptionalBeanInjectionPoint
public OptionalBeanInjectionPoint(K type, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, K beanType) Creates an instance of aOptionalBeanInjectionPointrecord class.- Parameters:
type- the value for thetyperecord componentannotationMetadata- the value for theannotationMetadatarecord componentbeanType- the value for thebeanTyperecord 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
public io.micronaut.core.annotation.AnnotationMetadata annotationMetadata()Returns the value of theannotationMetadatarecord component.- Returns:
- the value of the
annotationMetadatarecord component
-
beanType
Returns the value of thebeanTyperecord component.- Returns:
- the value of the
beanTyperecord component
-
getAnnotationMetadata
default io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()Returns the annotation metadata associated with this element.- Specified by:
getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider- Returns:
- The annotation metadata associated with this element
-