T - The bean definition typepublic interface ValidatedBeanDefinition<T> extends BeanDefinition<T>
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBEREMPTY| Modifier and Type | Method and Description |
|---|---|
default T |
validate(BeanResolutionContext resolutionContext,
T instance)
Validates the bean with the validator factory if present.
|
default <V> void |
validateBeanArgument(BeanResolutionContext resolutionContext,
InjectionPoint injectionPoint,
Argument<V> argument,
int index,
V value)
Validates the given bean after it has been constructor.
|
findMethod, findPossibleMethods, getBeanType, getConstructor, getDeclaringType, getExecutableMethods, getInjectedFields, getInjectedMethods, getName, getPostConstructMethods, getPreDestroyMethods, getRequiredComponents, getRequiredMethod, getScope, getTypeArguments, getTypeArguments, getTypeArguments, getTypeParameters, getTypeParameters, inject, inject, isAbstract, isIterable, isProvided, isProxy, isSingletonbooleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeisPrimary, requiresMethodProcessinggetAnnotationMetadataisEnableddefault T validate(BeanResolutionContext resolutionContext, T instance)
resolutionContext - The resolution contextinstance - The instancedefault <V> void validateBeanArgument(@Nonnull BeanResolutionContext resolutionContext, @Nonnull InjectionPoint injectionPoint, @Nonnull Argument<V> argument, int index, @Nullable V value) throws BeanInstantiationException
V - The value typeresolutionContext - The resolution contextinjectionPoint - The injection pointargument - The argumentindex - The argument indexvalue - The valueBeanInstantiationException - if the bean is invalid