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

public final Class ConstructorInstance<T>

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

Execute instance creation as privileged action.
Authors
Emmanuel Bernard, Hardy Ferentschik

Field Summary

Modifier and TypeField and Description
private final Constructor<T>
private final Object[]
private static final Log

Constructor Summary

AccessConstructor and Description
private
ConstructorInstance(Constructor<T> constructor, Object... initArgs)

Method Summary

Modifier and TypeMethod and Description
public static <T> ConstructorInstance<T>
action(Constructor<T> constructor, Object... initArgs)

public T
run()

Implements java.security.PrivilegedAction.run.

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

Field Detail

constructorback to summary
private final Constructor<T> constructor
initArgsback to summary
private final Object[] initArgs
LOGback to summary
private static final Log LOG

Constructor Detail

ConstructorInstanceback to summary
private ConstructorInstance(Constructor<T> constructor, Object... initArgs)

Method Detail

actionback to summary
public static <T> ConstructorInstance<T> action(Constructor<T> constructor, Object... initArgs)
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