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

public final Class NewProxyInstance<T>

extends Object
implements PrivilegedAction<T>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
java.lang.reflect.InvocationHandler, .Proxy, java.security.PrivilegedAction

Execute proxy creation as privileged action.
Author
Guillaume Smet

Field Summary

Modifier and TypeField and Description
private final ClassLoader
private final Class<?>[]
private final InvocationHandler

Constructor Summary

AccessConstructor and Description
private
NewProxyInstance(ClassLoader classLoader, Class<?>[] interfaces, InvocationHandler invocationHandler)

private
NewProxyInstance(ClassLoader classLoader, Class<T> interfaze, InvocationHandler invocationHandler)

Method Summary

Modifier and TypeMethod and Description
public static <T> NewProxyInstance<T>
action(ClassLoader classLoader, Class<T> interfaze, InvocationHandler invocationHandler)

public static NewProxyInstance<Object>
action(ClassLoader classLoader, Class<?>[] interfaces, InvocationHandler invocationHandler)

public T
run()

Implements java.security.PrivilegedAction.run.

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

Field Detail

classLoaderback to summary
private final ClassLoader classLoader
interfacesback to summary
private final Class<?>[] interfaces
invocationHandlerback to summary
private final InvocationHandler invocationHandler

Constructor Detail

NewProxyInstanceback to summary
private NewProxyInstance(ClassLoader classLoader, Class<?>[] interfaces, InvocationHandler invocationHandler)
NewProxyInstanceback to summary
private NewProxyInstance(ClassLoader classLoader, Class<T> interfaze, InvocationHandler invocationHandler)

Method Detail

actionback to summary
public static <T> NewProxyInstance<T> action(ClassLoader classLoader, Class<T> interfaze, InvocationHandler invocationHandler)
actionback to summary
public static NewProxyInstance<Object> action(ClassLoader classLoader, Class<?>[] interfaces, InvocationHandler invocationHandler)
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
@SuppressWarnings:unchecked
@Override