Class AbstractEnumBeanIntrospectionAndReference<E extends Enum<E>>
java.lang.Object
io.micronaut.inject.beans.AbstractInitializableBeanIntrospection<E>
io.micronaut.inject.beans.AbstractInitializableBeanIntrospectionAndReference<E>
io.micronaut.inject.beans.AbstractEnumBeanIntrospectionAndReference<E>
- Type Parameters:
E- The enum type
- All Implemented Interfaces:
AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, BeanInfo<E>, BeanIntrospection<E>, BeanIntrospectionReference<E>, EnumBeanIntrospection<E>, UnsafeBeanInstantiationIntrospection<E>, Named, Ordered, ArgumentCoercible<E>
@Internal
public abstract class AbstractEnumBeanIntrospectionAndReference<E extends Enum<E>>
extends AbstractInitializableBeanIntrospectionAndReference<E>
implements EnumBeanIntrospection<E>
A variation of
AbstractInitializableBeanIntrospection that is also a BeanIntrospectionReference.- Since:
- 4.4.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordEnum value compile-time data container.static final recordDeprecated.Nested classes/interfaces inherited from class AbstractInitializableBeanIntrospection
AbstractInitializableBeanIntrospection.BeanMethodRef<P>, AbstractInitializableBeanIntrospection.BeanPropertyRef<P>Nested classes/interfaces inherited from interface BeanIntrospection
BeanIntrospection.Builder<T>Nested classes/interfaces inherited from interface EnumBeanIntrospection
EnumBeanIntrospection.EnumConstant<E> -
Field Summary
Fields inherited from interface AnnotationMetadata
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface AnnotationSource
EMPTYFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEnumBeanIntrospectionAndReference(Class<E> beanType, AnnotationMetadata annotationMetadata, AnnotationMetadata constructorAnnotationMetadata, Argument<?>[] constructorArguments, AbstractInitializableBeanIntrospection.BeanPropertyRef<Object>[] propertiesRefs, AbstractInitializableBeanIntrospection.BeanMethodRef<Object>[] methodsRefs, AbstractEnumBeanIntrospectionAndReference.EnumConstantDynamicRef<E>[] enumValueRefs) The default constructor.protectedAbstractEnumBeanIntrospectionAndReference(Class<E> beanType, AnnotationMetadata annotationMetadata, AnnotationMetadata constructorAnnotationMetadata, Argument<?>[] constructorArguments, AbstractInitializableBeanIntrospection.BeanPropertyRef<Object>[] propertiesRefs, AbstractInitializableBeanIntrospection.BeanMethodRef<Object>[] methodsRefs, AbstractEnumBeanIntrospectionAndReference.EnumConstantRef<E>[] enumValueRefs) Deprecated. -
Method Summary
Methods inherited from class AbstractInitializableBeanIntrospectionAndReference
getName, isPresent, loadMethods inherited from class AbstractInitializableBeanIntrospection
builder, dispatch, dispatchOne, equals, findIndexedProperty, getAccessibleTargetMethodByIndex, getAnnotationMetadata, getBeanMethods, getBeanProperties, getBeanPropertiesIndexedSubset, getBeanReadProperties, getBeanType, getBeanWriteProperties, getConstructor, getConstructorArguments, getIndexedProperties, getIndexedProperty, getProperty, getPropertyByIndex, getTargetMethodByIndex, hasConstructor, hashCode, instantiate, instantiate, instantiateInternal, instantiateUnsafe, propertyIndexOf, toString, unknownDispatchAtIndexExceptionMethods inherited from interface AnnotationMetadata
enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface 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, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationMetadataProvider
getAnnotationMetadataMethods inherited from interface BeanInfo
asArgument, getGenericBeanType, getOrderMethods inherited from interface BeanIntrospection
builder, getBeanMethods, getBeanProperties, getBeanReadProperties, getBeanType, getBeanWriteProperties, getConstructor, getConstructorArguments, getIndexedProperties, getIndexedProperty, getIndexedProperty, getProperty, getProperty, getPropertyNames, getReadProperty, getReadProperty, getReadPropertyNames, getRequiredProperty, getRequiredReadProperty, getRequiredWriteProperty, getWriteProperty, getWriteProperty, hasBuilder, instantiate, instantiate, instantiate, isBuildable, propertyIndexOfMethods inherited from interface BeanIntrospectionReference
getBeanType
-
Constructor Details
-
AbstractEnumBeanIntrospectionAndReference
@Deprecated protected AbstractEnumBeanIntrospectionAndReference(Class<E> beanType, AnnotationMetadata annotationMetadata, AnnotationMetadata constructorAnnotationMetadata, Argument<?>[] constructorArguments, AbstractInitializableBeanIntrospection.BeanPropertyRef<Object>[] propertiesRefs, AbstractInitializableBeanIntrospection.BeanMethodRef<Object>[] methodsRefs, AbstractEnumBeanIntrospectionAndReference.EnumConstantRef<E>[] enumValueRefs) Deprecated.The default constructor.- Parameters:
beanType- The bean typeannotationMetadata- The annotation metadataconstructorAnnotationMetadata- The constructor annotation metadataconstructorArguments- The constructor argumentspropertiesRefs- The property referencesmethodsRefs- The method referencesenumValueRefs- The enum references
-
AbstractEnumBeanIntrospectionAndReference
protected AbstractEnumBeanIntrospectionAndReference(Class<E> beanType, AnnotationMetadata annotationMetadata, AnnotationMetadata constructorAnnotationMetadata, Argument<?>[] constructorArguments, AbstractInitializableBeanIntrospection.BeanPropertyRef<Object>[] propertiesRefs, AbstractInitializableBeanIntrospection.BeanMethodRef<Object>[] methodsRefs, AbstractEnumBeanIntrospectionAndReference.EnumConstantDynamicRef<E>[] enumValueRefs) The default constructor.- Parameters:
beanType- The bean typeannotationMetadata- The annotation metadataconstructorAnnotationMetadata- The constructor annotation metadataconstructorArguments- The constructor argumentspropertiesRefs- The property referencesmethodsRefs- The method referencesenumValueRefs- The enum references
-
-
Method Details
-
getConstants
- Specified by:
getConstantsin interfaceEnumBeanIntrospection<E extends Enum<E>>- Returns:
- The constants of the enum
-
AbstractEnumBeanIntrospectionAndReference.EnumConstantRefis replaced byAbstractEnumBeanIntrospectionAndReference.EnumConstantDynamicRef