T - The generic typepublic final class ArgumentBeanType<T> extends java.lang.Object implements BeanType<T>, io.micronaut.core.type.Argument<T>
Argument as a BeanType. Useful in combination with qualifiers.| Constructor and Description |
|---|
ArgumentBeanType(io.micronaut.core.type.Argument<T> argument)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsType(io.micronaut.core.type.Argument<?> other) |
io.micronaut.core.annotation.AnnotationMetadata |
getAnnotationMetadata() |
java.lang.Class<T> |
getBeanType()
Returns the bean type.
|
java.lang.String |
getName() |
java.lang.Class<T> |
getType() |
java.util.Map<java.lang.String,io.micronaut.core.type.Argument<?>> |
getTypeVariables() |
boolean |
isContainerType()
Checks whether the bean type is a container type.
|
boolean |
isEnabled(BeanContext context)
Return whether this component is enabled for the given context.
|
boolean |
isEnabled(BeanContext context,
BeanResolutionContext resolutionContext)
Return whether this component is enabled for the given context.
|
boolean |
isPrimary() |
int |
typeHashCode() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExposedTypes, isCandidateBean, requiresMethodProcessingisAssignableFrom, isAssignableFrom, isInstance, isTypeVariable, listOf, listOf, mapOf, mapOf, of, of, of, of, of, of, of, of, of, ofTypeVariable, ofTypeVariable, ofTypeVariable, ofTypeVariable, setOf, setOf, toClassArray, toStringasParameterizedType, getSimpleName, getTypeName, getTypeString, getWrappedType, getWrapperType, hasTypeVariables, isArray, isAsync, isAsyncOrReactive, isCompletable, isOptional, isPrimitive, isProvider, isReactive, isSpecifiedSingle, isVoid, isWrapperTypegetFirstTypeVariable, getTypeParameters, getTypeVariableisDeclaredNonNull, isDeclaredNullable, isNonNull, isNullablefindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypepublic ArgumentBeanType(@NonNull
io.micronaut.core.type.Argument<T> argument)
argument - The argumentpublic boolean isContainerType()
BeanTypeisContainerType in interface io.micronaut.core.type.TypeInformation<T>isContainerType in interface BeanType<T>Iterable.public java.lang.String getName()
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
getAnnotationMetadata in interface io.micronaut.core.annotation.AnnotationMetadataProviderpublic java.util.Map<java.lang.String,io.micronaut.core.type.Argument<?>> getTypeVariables()
getTypeVariables in interface io.micronaut.core.type.TypeVariableResolverpublic java.lang.Class<T> getType()
getType in interface io.micronaut.core.type.TypeInformation<T>public boolean equalsType(@Nullable
io.micronaut.core.type.Argument<?> other)
equalsType in interface io.micronaut.core.type.Argument<T>public int typeHashCode()
typeHashCode in interface io.micronaut.core.type.Argument<T>public boolean isPrimary()
public java.lang.Class<T> getBeanType()
BeanTypegetBeanType in interface BeanType<T>public boolean isEnabled(BeanContext context)
BeanContextConditionalisEnabled in interface BeanContextConditionalcontext - The contextpublic boolean isEnabled(@NonNull
BeanContext context,
@Nullable
BeanResolutionContext resolutionContext)
BeanContextConditionalisEnabled in interface BeanContextConditionalcontext - The contextresolutionContext - The bean resolution context