| Modifier and Type | Field and Description |
|---|---|
| private static final Enumeration | |
| private final Map | overrides
Key is asked for value: value is actual value. |
| Access | Constructor and Description |
|---|---|
| public | ResourceOverridingShadowingClassLoader(ClassLoader
the ClassLoader to decorate enclosingClassLoader)Create a new ResourceOverridingShadowingClassLoader, decorating the given ClassLoader. |
| Modifier and Type | Method and Description |
|---|---|
| public void | copyOverrides(ResourceOverridingShadowingClassLoader
the other ClassLoader to copy from other)Copy all overrides from the given ClassLoader. |
| public URL | getResource(String
The resource name requestedPath)Overrides org. Finds the resource with the given name. |
| public InputStream | getResourceAsStream(String
The resource name requestedPath)Overrides org. Returns an input stream for reading the specified resource. |
| public Enumeration | getResources(String
The resource name requestedPath)Overrides org. Finds all the resources with the given name. |
| public void | |
| public void |
| EMPTY_URL_ENUMERATION | back to summary |
|---|---|
| private static final Enumeration<URL> EMPTY_URL_ENUMERATION | |
| overrides | back to summary |
|---|---|
| private final Map<String, String> overrides Key is asked for value: value is actual value. | |
| ResourceOverridingShadowingClassLoader | back to summary |
|---|---|
| public ResourceOverridingShadowingClassLoader(ClassLoader enclosingClassLoader) Create a new ResourceOverridingShadowingClassLoader, decorating the given ClassLoader.
| |
| copyOverrides | back to summary |
|---|---|
| public void copyOverrides(ResourceOverridingShadowingClassLoader other) Copy all overrides from the given ClassLoader.
| |
| getResource | back to summary |
|---|---|
| public URL getResource(String requestedPath) Overrides org. Doc from java. Finds the resource with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a ' Resources in named modules are subject to the encapsulation rules
specified by
| |
| getResourceAsStream | back to summary |
|---|---|
| public InputStream getResourceAsStream(String requestedPath) Overrides org. Doc from java. Returns an input stream for reading the specified resource. The search order is described in the documentation for Resources in named modules are subject to the encapsulation rules
specified by
| |
| getResources | back to summary |
|---|---|
| public Enumeration Overrides org. Doc from java. Finds all the resources with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a Resources in named modules are subject to the encapsulation rules
specified by
| |
| override | back to summary |
|---|---|
| public void override(String oldPath, String newPath) Return the resource (if any) at the new path on an attempt to locate a resource at the old path. | |
| suppress | back to summary |
|---|---|
| public void suppress(String oldPath) Ensure that a resource with the given path is not found.
| |