Top Fields Constructors Methods
org.hibernate.validator.internal.util.privilegedactions

public final Class GetAnnotationAttribute<T>

extends Object
implements PrivilegedAction<T>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
java.lang.annotation.Annotation, java.lang.invoke.MethodHandles, java.lang.reflect.InvocationTargetException, .Method, java.security.PrivilegedAction, org.hibernate.validator.internal.util.logging.Log, .LoggerFactory

Authors
Emmanuel Bernard, Hardy Ferentschik

Field Summary

Modifier and TypeField and Description
private final Annotation
private final String
private static final Log
private final Class<T>

Constructor Summary

AccessConstructor and Description
private
GetAnnotationAttribute(Annotation annotation, String attributeName, Class<T> type)

Method Summary

Modifier and TypeMethod and Description
public static <T> GetAnnotationAttribute<T>
action(Annotation annotation, String attributeName, Class<T> type)

public T
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationback to summary
private final Annotation annotation
attributeNameback to summary
private final String attributeName
LOGback to summary
private static final Log LOG
typeback to summary
private final Class<T> type

Constructor Detail

GetAnnotationAttributeback to summary
private GetAnnotationAttribute(Annotation annotation, String attributeName, Class<T> type)

Method Detail

actionback to summary
public static <T> GetAnnotationAttribute<T> action(Annotation annotation, String attributeName, Class<T> type)
runback to summary
public T run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:T

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

Annotations
@Override
@SuppressWarnings:unchecked