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

public final Class GetResource

extends Object
implements PrivilegedAction<URL>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
java.net.URL, java.security.PrivilegedAction

Loads the given resource.
Author
Gunnar Morling

Field Summary

Modifier and TypeField and Description
private final ClassLoader
private final String

Constructor Summary

AccessConstructor and Description
private
GetResource(ClassLoader classLoader, String resourceName)

Method Summary

Modifier and TypeMethod and Description
public static GetResource
action(ClassLoader classLoader, String resourceName)

public URL
run()

Implements java.security.PrivilegedAction.run.

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

Field Detail

classLoaderback to summary
private final ClassLoader classLoader
resourceNameback to summary
private final String resourceName

Constructor Detail

GetResourceback to summary
private GetResource(ClassLoader classLoader, String resourceName)

Method Detail

actionback to summary
public static GetResource action(ClassLoader classLoader, String resourceName)
runback to summary
public URL 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:URL

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