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

public final Class SetContextClassLoader

extends Object
implements PrivilegedAction<Void>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
java.security.PrivilegedAction, org.hibernate.validator.internal.util.Contracts

Privileged action used to set the Thread context class loader.
Author
Guillaume Smet

Field Summary

Modifier and TypeField and Description
private final ClassLoader

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SetContextClassLoader
action(ClassLoader classLoader)

public Void
run()

Implements java.security.PrivilegedAction.run.

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

Field Detail

classLoaderback to summary
private final ClassLoader classLoader

Constructor Detail

SetContextClassLoaderback to summary
private SetContextClassLoader(ClassLoader classLoader)

Method Detail

actionback to summary
public static SetContextClassLoader action(ClassLoader classLoader)
runback to summary
public Void 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:Void

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