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, wait
getExposedTypes, isCandidateBean, requiresMethodProcessing
isAssignableFrom, isAssignableFrom, isInstance, isTypeVariable, listOf, listOf, mapOf, mapOf, of, of, of, of, of, of, of, of, of, ofTypeVariable, ofTypeVariable, ofTypeVariable, ofTypeVariable, setOf, setOf, toClassArray, toString
asParameterizedType, getSimpleName, getTypeName, getTypeString, getWrappedType, getWrapperType, hasTypeVariables, isArray, isAsync, isAsyncOrReactive, isCompletable, isOptional, isPrimitive, isProvider, isReactive, isSpecifiedSingle, isVoid, isWrapperType
getFirstTypeVariable, getTypeParameters, getTypeVariable
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
public ArgumentBeanType(@NonNull io.micronaut.core.type.Argument<T> argument)
argument
- The argumentpublic boolean isContainerType()
BeanType
isContainerType
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.AnnotationMetadataProvider
public java.util.Map<java.lang.String,io.micronaut.core.type.Argument<?>> getTypeVariables()
getTypeVariables
in interface io.micronaut.core.type.TypeVariableResolver
public 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()
BeanType
getBeanType
in interface BeanType<T>
public boolean isEnabled(BeanContext context)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextpublic boolean isEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextresolutionContext
- The bean resolution context