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

public final Class GetResources

extends Object
implements PrivilegedAction<Enumeration<URL>>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
java.io.IOException, java.net.URL, java.security.PrivilegedAction, java.util.Collections, .Enumeration

A PrivilegedAction wrapping around ClassLoader.getResources(String).
Author
Hardy Ferentschik

Field Summary

Modifier and TypeField and Description
private final ClassLoader
private final String

Constructor Summary

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

Method Summary

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

public Enumeration<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

GetResourcesback to summary
private GetResources(ClassLoader classLoader, String resourceName)

Method Detail

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