MetaDataProvider which reads the metadata from annotations which is the default configuration source.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static interface | AnnotationMetaDataProvider.TypeArgumentLocation
The location of a type argument before it is really considered a constraint location. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationProcessingOptions | |
| private final ConstraintCreationContext | |
| private final JavaBeanHelper | |
| private static final Log | |
| private final BeanConfiguration |
| Access | Constructor and Description |
|---|---|
| public | AnnotationMetaDataProvider(ConstraintCreationContext constraintCreationContext, JavaBeanHelper javaBeanHelper, AnnotationProcessingOptions annotationProcessingOptions)
|
| Modifier and Type | Method and Description |
|---|---|
| private <A extends Annotation> ConstraintDescriptorImpl | buildConstraintDescriptor(Constrainable constrainable, A annotation, ConstraintLocation.
|
| private Set | convertToMetaConstraints(List<ConstraintDescriptorImpl<?>> constraintDescriptors, JavaBeanField javaBeanField)
|
| private Set | convertToMetaConstraints(List<ConstraintDescriptorImpl<?>> constraintDescriptors, Callable callable)
|
| private CascadingMetaDataBuilder | |
| private CascadingMetaDataBuilder | |
| private CascadingMetaDataBuilder | |
| protected < the annotation type A extends Annotation> List | Returns: A list of constraint descriptors or the empty list in caseannotation is neither a
single nor multi-valued annotation.The constrainable to check for constraints annotations constrainable, A The annotation to examine annotation, ConstraintLocation.the element type on which the annotation/constraint is placed on typeExamines the given annotation to see whether it is a single- or multi-valued constraint annotation. |
| private List | Returns: A list of constraint descriptors for all constraint specified for the given member.The constrainable to check for constraint annotations. constrainable, ConstraintLocation.The constraint location kind. kindFinds all constraint annotations defined for the given constrainable and returns them in a list of constraint descriptors. |
| private List | Returns: A list of constraint descriptors for all constraint specified for the given member.The constrainable element (will be the executable for a method parameter). constrainable, JavaBeanAnnotatedElement The annotated element. Usually the same as the constrainable except in the case of method
parameters constraints when it is the parameter. annotatedElement, ConstraintLocation.The constraint location kind. kindFinds all constraint annotations defined for the given constrainable and returns them in a list of constraint descriptors. |
| private List | Returns: A list of constraint descriptors for all constraint specified for the given member.The constrainable element (will be the executable for a method parameter). constrainable, Annotation[] The annotations. annotations, ConstraintLocation.The constraint location kind. kindFinds all constraint annotations defined for the given constrainable and returns them in a list of constraint descriptors. |
| private ConstrainedExecutable | Returns: A meta data object describing the constraints specified for the given element.The executable element to check for constraints annotations. executable)Finds all constraint annotations defined for the given method or constructor. |
| private ConstrainedField | |
| protected Set | findTypeAnnotationConstraints(JavaBeanField javaBeanField)
Finds type arguments constraints for fields. |
| protected Set | findTypeAnnotationConstraints(JavaBeanExecutable<?> javaBeanExecutable)
Finds type arguments constraints for method return values. |
| protected Set | Returns: a set of type arguments constraints, or an empty set if no constrained type arguments are foundthe parameter javaBeanParameter)Finds type arguments constraints for parameters. |
| private Set | findTypeArgumentsConstraints(Constrainable constrainable, AnnotationMetaDataProvider.
|
| private Set | findTypeUseConstraints(Constrainable constrainable, AnnotatedType typeArgument, TypeVariable<?> typeVariable, AnnotationMetaDataProvider.
Finds type use annotation constraints defined on the type argument. |
| public AnnotationProcessingOptions | getAnnotationProcessingOptions()
Implements org. |
| public <T> BeanConfiguration | getBeanConfiguration(Class<T> beanClass)
Implements org. null if this provider has no meta-data on the given
type.
|
| private CascadingMetaDataBuilder | getCascadingMetaData(JavaBeanAnnotatedElement annotatedElement, Map<TypeVariable<?>, CascadingMetaDataBuilder> containerElementTypesCascadingMetaData)
|
| private Set | |
| private Set | |
| private List | |
| private <T> DefaultGroupSequenceProvider | |
| private Set | |
| private Map | |
| private Map | |
| private Set | |
| private Set | |
| private List | Returns: A list with parameter meta data for the given executable.The executable of interest. javaBeanExecutable)Retrieves constraint related meta data for the parameters of the given executable. |
| private Map | |
| private Map | |
| private Map | |
| private Map | getTypeParametersCascadingMetaDataForParameterizedType(AnnotatedParameterizedType annotatedParameterizedType, TypeVariable<?>[] typeParameters)
|
| private <T> DefaultGroupSequenceProvider | newGroupSequenceProviderClassInstance(Class<T> beanClass, Class<? extends DefaultGroupSequenceProvider<? super T>> providerClass)
|
| private <T> BeanConfiguration | Returns: Retrieves constraint related meta data from the annotations of the given type.The bean class for which to retrieve the meta data beanClass)
|
| private <T> T | run(PrivilegedAction<T> action)
Runs the given privileged action, using a privileged block if required. |
| annotationProcessingOptions | back to summary |
|---|---|
| private final AnnotationProcessingOptions annotationProcessingOptions | |
| constraintCreationContext | back to summary |
|---|---|
| private final ConstraintCreationContext constraintCreationContext | |
| javaBeanHelper | back to summary |
|---|---|
| private final JavaBeanHelper javaBeanHelper | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| objectBeanConfiguration | back to summary |
|---|---|
| private final BeanConfiguration<Object> objectBeanConfiguration | |
| AnnotationMetaDataProvider | back to summary |
|---|---|
| public AnnotationMetaDataProvider(ConstraintCreationContext constraintCreationContext, JavaBeanHelper javaBeanHelper, AnnotationProcessingOptions annotationProcessingOptions) | |
| buildConstraintDescriptor | back to summary |
|---|---|
| private <A extends Annotation> ConstraintDescriptorImpl | |
| convertToMetaConstraints | back to summary |
|---|---|
| private Set | |
| convertToMetaConstraints | back to summary |
|---|---|
| private Set | |
| findCascadingMetaData | back to summary |
|---|---|
| private CascadingMetaDataBuilder findCascadingMetaData(JavaBeanParameter javaBeanParameter) | |
| findCascadingMetaData | back to summary |
|---|---|
| private CascadingMetaDataBuilder findCascadingMetaData(JavaBeanField javaBeanField) | |
| findCascadingMetaData | back to summary |
|---|---|
| private CascadingMetaDataBuilder findCascadingMetaData(JavaBeanExecutable<?> javaBeanExecutable) | |
| findConstraintAnnotations | back to summary |
|---|---|
| protected <A extends Annotation> List Examines the given annotation to see whether it is a single- or multi-valued constraint annotation.
| |
| findConstraints | back to summary |
|---|---|
| private List Finds all constraint annotations defined for the given constrainable and returns them in a list of constraint descriptors.
| |
| findConstraints | back to summary |
|---|---|
| private List Finds all constraint annotations defined for the given constrainable and returns them in a list of constraint descriptors.
| |
| findConstraints | back to summary |
|---|---|
| private List Finds all constraint annotations defined for the given constrainable and returns them in a list of constraint descriptors.
| |
| findExecutableMetaData | back to summary |
|---|---|
| private ConstrainedExecutable findExecutableMetaData(Executable executable) Finds all constraint annotations defined for the given method or constructor.
| |
| findPropertyMetaData | back to summary |
|---|---|
| private ConstrainedField findPropertyMetaData(JavaBeanField javaBeanField) | |
| findTypeAnnotationConstraints | back to summary |
|---|---|
| protected Set Finds type arguments constraints for fields. | |
| findTypeAnnotationConstraints | back to summary |
|---|---|
| protected Set Finds type arguments constraints for method return values. | |
| findTypeAnnotationConstraintsForExecutableParameter | back to summary |
|---|---|
| protected Set Finds type arguments constraints for parameters.
| |
| findTypeArgumentsConstraints | back to summary |
|---|---|
| private Set | |
| findTypeUseConstraints | back to summary |
|---|---|
| private Set Finds type use annotation constraints defined on the type argument. | |
| getAnnotationProcessingOptions | back to summary |
|---|---|
| public AnnotationProcessingOptions getAnnotationProcessingOptions() Implements org. Doc from org. Returns the annotation processing options as configured by this provider.
| |
| getBeanConfiguration | back to summary |
|---|---|
| public <T> BeanConfiguration Implements org. Doc from org. Returns a bean configuration for the given type or
| |
| getCascadingMetaData | back to summary |
|---|---|
| private CascadingMetaDataBuilder getCascadingMetaData(JavaBeanAnnotatedElement annotatedElement, Map<TypeVariable<?>, CascadingMetaDataBuilder> containerElementTypesCascadingMetaData) | |
| getClassLevelConstraints | back to summary |
|---|---|
| private Set | |
| getConstructorMetaData | back to summary |
|---|---|
| private Set | |
| getDefaultGroupSequence | back to summary |
|---|---|
| private List | |
| getDefaultGroupSequenceProvider | back to summary |
|---|---|
| private <T> DefaultGroupSequenceProvider | |
| getFieldMetaData | back to summary |
|---|---|
| private Set | |
| getGroupConversions | back to summary |
|---|---|
| private Map | |
| getGroupConversions | back to summary |
|---|---|
| private Map | |
| getMetaData | back to summary |
|---|---|
| private Set | |
| getMethodMetaData | back to summary |
|---|---|
| private Set | |
| getParameterMetaData | back to summary |
|---|---|
| private List Retrieves constraint related meta data for the parameters of the given executable.
| |
| getTypeParametersCascadingMetadata | back to summary |
|---|---|
| private Map | |
| getTypeParametersCascadingMetaDataForAnnotatedType | back to summary |
|---|---|
| private Map | |
| getTypeParametersCascadingMetaDataForArrayType | back to summary |
|---|---|
| private Map | |
| getTypeParametersCascadingMetaDataForParameterizedType | back to summary |
|---|---|
| private Map | |
| newGroupSequenceProviderClassInstance | back to summary |
|---|---|
| private <T> DefaultGroupSequenceProvider | |
| retrieveBeanConfiguration | back to summary |
|---|---|
private <T> BeanConfiguration
| |
| run | back to summary |
|---|---|
| private <T> T run(PrivilegedAction<T> action) Runs the given privileged action, using a privileged block if required. Note This must never be changed into a publicly available method to avoid execution of arbitrary privileged actions within HV's protection domain.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationMetaDataProvider. | |
| private final Type | |
| private final TypeVariable |
| Access | Constructor and Description |
|---|---|
| private | NestedTypeArgumentLocation(AnnotationMetaDataProvider.
|
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintLocation |
| parentLocation | back to summary |
|---|---|
| private final AnnotationMetaDataProvider. | |
| typeOfAnnotatedElement | back to summary |
|---|---|
| private final Type typeOfAnnotatedElement | |
| typeParameter | back to summary |
|---|---|
| private final TypeVariable<?> typeParameter | |
| NestedTypeArgumentLocation | back to summary |
|---|---|
| private NestedTypeArgumentLocation(AnnotationMetaDataProvider. | |
| toConstraintLocation | back to summary |
|---|---|
public ConstraintLocation toConstraintLocation()
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final JavaBeanExecutable |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintLocation |
| index | back to summary |
|---|---|
| private final int index | |
| javaBeanExecutable | back to summary |
|---|---|
| private final JavaBeanExecutable<?> javaBeanExecutable | |
| TypeArgumentExecutableParameterLocation | back to summary |
|---|---|
| private TypeArgumentExecutableParameterLocation(JavaBeanExecutable<?> javaBeanExecutable, int index) | |
| toConstraintLocation | back to summary |
|---|---|
public ConstraintLocation toConstraintLocation()
| |
| Modifier and Type | Field and Description |
|---|---|
| private final JavaBeanField |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintLocation |
| javaBeanField | back to summary |
|---|---|
| private final JavaBeanField javaBeanField | |
| TypeArgumentFieldLocation | back to summary |
|---|---|
| private TypeArgumentFieldLocation(JavaBeanField javaBeanField) | |
| toConstraintLocation | back to summary |
|---|---|
public ConstraintLocation toConstraintLocation()
| |
It avoids initializing a constraint location if we did not find any constraints. This is especially useful in
a Java 9 environment as ConstraintLocation#forField(org.
or ConstraintLocation#forGetter(Getter) tries to make the Member accessible
which might not be possible (for instance for java.util classes).
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintLocation |
| toConstraintLocation | back to summary |
|---|---|
| public ConstraintLocation toConstraintLocation() | |
| Modifier and Type | Field and Description |
|---|---|
| private final JavaBeanExecutable |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintLocation |
| javaBeanExecutable | back to summary |
|---|---|
| private final JavaBeanExecutable<?> javaBeanExecutable | |
| TypeArgumentReturnValueLocation | back to summary |
|---|---|
| private TypeArgumentReturnValueLocation(JavaBeanExecutable<?> javaBeanExecutable) | |
| toConstraintLocation | back to summary |
|---|---|
public ConstraintLocation toConstraintLocation()
| |