Class BeanPropertyWithAnnotationMetadata<B,T>

java.lang.Object
io.micronaut.data.model.runtime.BeanPropertyWithAnnotationMetadata<B,T>
Type Parameters:
B - The bean type
T - The bean property type
All Implemented Interfaces:
io.micronaut.core.annotation.AnnotatedElement, io.micronaut.core.annotation.AnnotationMetadata, io.micronaut.core.annotation.AnnotationMetadataDelegate, io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.beans.BeanProperty<B,T>, io.micronaut.core.naming.Named, io.micronaut.core.type.ArgumentCoercible<T>

@Internal public final class BeanPropertyWithAnnotationMetadata<B,T> extends Object implements io.micronaut.core.beans.BeanProperty<B,T>
Custom BeanProperty with different annotation metadata.
Since:
4.2.0
Author:
Denis Stepanov
  • Field Summary

    Fields inherited from interface io.micronaut.core.annotation.AnnotationMetadata

    CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER

    Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    BeanPropertyWithAnnotationMetadata(io.micronaut.core.beans.BeanProperty<B,T> delegate, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull io.micronaut.core.type.Argument<T>
     
    void
    convertAndSet(B bean, @Nullable Object value)
     
    get(B bean)
     
    <T2> Optional<T2>
    get(B bean, @NonNull io.micronaut.core.convert.ArgumentConversionContext<T2> conversionContext)
     
    <T2> Optional<T2>
    get(B bean, @NonNull io.micronaut.core.type.Argument<T2> argument)
     
    <T2> @NonNull Optional<T2>
    get(B bean, @NonNull Class<T2> type)
     
    <T2> T2
    get(B bean, @NonNull Class<T2> type, T2 defaultValue)
     
    io.micronaut.core.annotation.AnnotationMetadata
     
    @NonNull io.micronaut.core.beans.BeanIntrospection<B>
     
     
    @NonNull String
     
    @NonNull Class<T>
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
    set(B bean, T value)
     
    withValue(B bean, T value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadata

    enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresent

    Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegate

    booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, copyAnnotationMetadata, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByName, getAnnotationValuesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByName, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getTargetAnnotationMetadata, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
  • Constructor Details

    • BeanPropertyWithAnnotationMetadata

      public BeanPropertyWithAnnotationMetadata(io.micronaut.core.beans.BeanProperty<B,T> delegate, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
  • Method Details

    • getDeclaringBean

      @NonNull public @NonNull io.micronaut.core.beans.BeanIntrospection<B> getDeclaringBean()
      Specified by:
      getDeclaringBean in interface io.micronaut.core.beans.BeanProperty<B,T>
    • get

      @Nullable public T get(@NonNull B bean)
      Specified by:
      get in interface io.micronaut.core.beans.BeanProperty<B,T>
    • get

      @NonNull public <T2> @NonNull Optional<T2> get(@NonNull B bean, @NonNull @NonNull Class<T2> type)
      Specified by:
      get in interface io.micronaut.core.beans.BeanProperty<B,T>
    • get

      public <T2> Optional<T2> get(@NonNull B bean, @NonNull @NonNull io.micronaut.core.type.Argument<T2> argument)
      Specified by:
      get in interface io.micronaut.core.beans.BeanProperty<B,T>
    • get

      public <T2> Optional<T2> get(@NonNull B bean, @NonNull @NonNull io.micronaut.core.convert.ArgumentConversionContext<T2> conversionContext)
      Specified by:
      get in interface io.micronaut.core.beans.BeanProperty<B,T>
    • get

      @Nullable public <T2> T2 get(@NonNull B bean, @NonNull @NonNull Class<T2> type, @Nullable T2 defaultValue)
      Specified by:
      get in interface io.micronaut.core.beans.BeanProperty<B,T>
    • hasSetterOrConstructorArgument

      public boolean hasSetterOrConstructorArgument()
      Specified by:
      hasSetterOrConstructorArgument in interface io.micronaut.core.beans.BeanProperty<B,T>
    • withValue

      public B withValue(@NonNull B bean, @Nullable T value)
      Specified by:
      withValue in interface io.micronaut.core.beans.BeanProperty<B,T>
    • set

      public void set(@NonNull B bean, @Nullable T value)
      Specified by:
      set in interface io.micronaut.core.beans.BeanProperty<B,T>
    • convertAndSet

      public void convertAndSet(@NonNull B bean, @Nullable @Nullable Object value)
      Specified by:
      convertAndSet in interface io.micronaut.core.beans.BeanProperty<B,T>
    • getType

      @NonNull public @NonNull Class<T> getType()
      Specified by:
      getType in interface io.micronaut.core.beans.BeanProperty<B,T>
    • asArgument

      @NonNull public @NonNull io.micronaut.core.type.Argument<T> asArgument()
      Specified by:
      asArgument in interface io.micronaut.core.type.ArgumentCoercible<B>
      Specified by:
      asArgument in interface io.micronaut.core.beans.BeanProperty<B,T>
    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface io.micronaut.core.beans.BeanProperty<B,T>
    • isWriteOnly

      public boolean isWriteOnly()
      Specified by:
      isWriteOnly in interface io.micronaut.core.beans.BeanProperty<B,T>
    • isReadWrite

      public boolean isReadWrite()
      Specified by:
      isReadWrite in interface io.micronaut.core.beans.BeanProperty<B,T>
    • getDeclaringType

      public Class<B> getDeclaringType()
      Specified by:
      getDeclaringType in interface io.micronaut.core.beans.BeanProperty<B,T>
    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • isDeclaredNullable

      public boolean isDeclaredNullable()
      Specified by:
      isDeclaredNullable in interface io.micronaut.core.annotation.AnnotatedElement
    • isNullable

      public boolean isNullable()
      Specified by:
      isNullable in interface io.micronaut.core.annotation.AnnotatedElement
    • isNonNull

      public boolean isNonNull()
      Specified by:
      isNonNull in interface io.micronaut.core.annotation.AnnotatedElement
    • isDeclaredNonNull

      public boolean isDeclaredNonNull()
      Specified by:
      isDeclaredNonNull in interface io.micronaut.core.annotation.AnnotatedElement
    • getAnnotationMetadata

      public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
      Specified by:
      getAnnotationMetadata in interface io.micronaut.core.annotation.AnnotationMetadataProvider