Package io.micronaut.inject
Class ArgumentBeanType<T>
java.lang.Object
io.micronaut.inject.ArgumentBeanType<T>
- Type Parameters:
- T- The generic type
- All Implemented Interfaces:
- AnnotatedElement,- AnnotationMetadataProvider,- AnnotationSource,- BeanInfo<T>,- Named,- Ordered,- Argument<T>,- ArgumentCoercible<T>,- TypeInformation<T>,- TypeVariableResolver,- BeanContextConditional,- BeanType<T>,- Type
- Since:
- 1.2
- Author:
- graemerocher
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.core.type.TypeInformationTypeInformation.TypeFormat
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTYFields inherited from interface io.micronaut.core.type.ArgumentBOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LIST_OF_STRING, LONG, OBJECT_ARGUMENT, SHORT, STRING, VOID, VOID_OBJECT, ZERO_ARGUMENTSFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanequalsType(@Nullable Argument<?> other) Whether the types are equivalent.Supplies the metadata.Returns the bean type.getName()getType()booleanChecks whether the bean type is a container type.booleanisEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext) Return whether this component is enabled for the given context.booleanisEnabled(BeanContext context) Return whether this component is enabled for the given context.booleanintThe hash code including only the types.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotatedElementisDeclaredNonNull, isDeclaredNullable, isNonNull, isNullableMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProviderfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSourcegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.core.type.ArgumentisAssignableFrom, isAssignableFrom, isInstance, isTypeVariable, withAnnotationMetadata, withNameMethods inherited from interface io.micronaut.core.beans.BeanInfoasArgument, getGenericBeanType, getOrderMethods inherited from interface io.micronaut.inject.BeanTypegetBeanName, getExposedTypes, isCandidateBean, requiresMethodProcessingMethods inherited from interface io.micronaut.core.type.TypeInformationasParameterizedType, asType, getBeanTypeString, getSimpleName, getTypeName, getTypeString, getTypeString, getWrappedType, getWrapperType, hasTypeVariables, isArray, isAsync, isAsyncOrReactive, isCompletable, isOptional, isPrimitive, isProvider, isReactive, isSpecifiedSingle, isVoid, isWrapperTypeMethods inherited from interface io.micronaut.core.type.TypeVariableResolvergetFirstTypeVariable, getTypeParameters, getTypeVariable
- 
Constructor Details- 
ArgumentBeanTypeDefault constructor.- Parameters:
- argument- The argument
 
 
- 
- 
Method Details- 
isContainerTypepublic boolean isContainerType()Description copied from interface:BeanTypeChecks whether the bean type is a container type.- Specified by:
- isContainerTypein interface- BeanType<T>
- Specified by:
- isContainerTypein interface- TypeInformation<T>
- Returns:
- Whether the type is a container type like Iterable.
 
- 
getName
- 
getAnnotationMetadataDescription copied from interface:AnnotationMetadataProviderSupplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA.- Specified by:
- getAnnotationMetadatain interface- AnnotationMetadataProvider
- Returns:
- The AnnotationMetadata
 
- 
getTypeVariables- Specified by:
- getTypeVariablesin interface- TypeVariableResolver
- Returns:
- Obtain a map of the type parameters for the argument
 
- 
getType- Specified by:
- getTypein interface- TypeInformation<T>
- Returns:
- The type
 
- 
equalsTypeDescription copied from interface:ArgumentWhether the types are equivalent. The regularObject.equals(Object)implementation includes the argument name within the comparison so this method offers a variation that just compares types.- Specified by:
- equalsTypein interface- Argument<T>
- Parameters:
- other- The type
- Returns:
- True if they are equal
 
- 
typeHashCodepublic int typeHashCode()Description copied from interface:ArgumentThe hash code including only the types. The regularObject.hashCode()implementation includes the argument name within the comparison so this method offers a variation that just compares types.- Specified by:
- typeHashCodein interface- Argument<T>
- Returns:
- The type hash code
 
- 
isPrimarypublic boolean isPrimary()
- 
getBeanTypeDescription copied from interface:BeanTypeReturns the bean type.- Specified by:
- getBeanTypein interface- BeanInfo<T>
- Specified by:
- getBeanTypein interface- BeanType<T>
- Returns:
- The underlying bean type
 
- 
isEnabledDescription copied from interface:BeanContextConditionalReturn whether this component is enabled for the given context.- Specified by:
- isEnabledin interface- BeanContextConditional
- Parameters:
- context- The context
- Returns:
- True if it is
 
- 
isEnabledpublic boolean isEnabled(@NonNull @NonNull BeanContext context, @Nullable @Nullable BeanResolutionContext resolutionContext) Description copied from interface:BeanContextConditionalReturn whether this component is enabled for the given context.- Specified by:
- isEnabledin interface- BeanContextConditional
- Parameters:
- context- The context
- resolutionContext- The bean resolution context
- Returns:
- True if it is
 
 
-