Top Description Constructors Methods
org.hibernate.validator.internal.util.annotation

public Class AnnotationFactory

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation, java.security.AccessController, .PrivilegedAction, org.hibernate.validator.internal.IgnoreForbiddenApisErrors, org.hibernate.validator.internal.util.privilegedactions.GetClassLoader, .NewProxyInstance

Creates live annotations (actually AnnotationProxy instances) from AnnotationDescriptors.
Authors
Paolo Perrotta, Davide Marchignoli, Hardy Ferentschik
See Also
AnnotationProxy

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T extends Annotation> T
private static <T> T
run(PrivilegedAction<T> action)

Runs the given privileged action, using a privileged block if required.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AnnotationFactoryback to summary
private AnnotationFactory()

Method Detail

createback to summary
public static <T extends Annotation> T create(AnnotationDescriptor<T> descriptor)
runback to summary
private static <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.

Annotations
@IgnoreForbiddenApisErrors
reason:SecurityManager is deprecated in JDK17