Class PackageNamesScanner.ResourcesProvider
java.lang.Object
org.glassfish.jersey.server.internal.scanning.PackageNamesScanner.ResourcesProvider
- Enclosing class:
PackageNamesScanner
Find resources with a given name and class loader.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PackageNamesScanner.ResourcesProvider
abstract Enumeration
<URL> getResources
(String name, ClassLoader cl) Find all resources with the given name using a class loader.private static void
-
Field Details
-
provider
-
-
Constructor Details
-
ResourcesProvider
public ResourcesProvider()
-
-
Method Details
-
getInstance
-
setInstance
private static void setInstance(PackageNamesScanner.ResourcesProvider provider) throws SecurityException - Throws:
SecurityException
-
getResources
Find all resources with the given name using a class loader.- Parameters:
name
- the resource namecl
- the class loader use to find the resources- Returns:
- An enumeration of URL objects for the resource. If no resources could be found, the enumeration will be empty. Resources that the class loader doesn't have access to will not be in the enumeration.
- Throws:
IOException
- if I/O errors occur
-