| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private volatile List | |
| private static final JarFileResourceLoader. | |
| private final File | |
| private final JarFile | |
| private final String | |
| private final String | |
| private final URL |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides default org. |
| private CodeSource | |
| public ResourceLoader | createSubloader(final String
the relative path relativePath, final String the name of the subloader's root rootName)Overrides default org. |
| pack-priv static void | |
| public synchronized ClassSpec | getClassSpec(final String
the fileName of the class, e.g. for the class fileName)org.jboss.modules.ResourceLoader
the fileName will be org/jboss/modules/ResourceLoader.classOverrides org. Implements org. |
| private JarEntry | |
| private static URI | |
| public String | getLibrary(final String
the name name)Overrides org. Implements org. |
| public URI | getLocation()
Overrides default org. |
| public PackageSpec | getPackageSpec(final String
the directory name name)Overrides org. Implements org. |
| public Collection | getPaths()
Overrides org. Implements org. |
| public Resource | getResource(String
the resource name name)Overrides org. Implements org. |
| public String | getRootName()
Overrides org. Overrides default org. |
| public Iterator | iterateResources(String
the path to search under startPath, final boolean true to recursively descend into subdirectories, false to only read this pathImplements org. |
| codeSources | back to summary |
|---|---|
| private final Map<JarFileResourceLoader. | |
| directory | back to summary |
|---|---|
| private volatile List<String> directory | |
| EMPTY_CODE_SIGNERS | back to summary |
|---|---|
| private static final JarFileResourceLoader. | |
| fileOfJar | back to summary |
|---|---|
| private final File fileOfJar | |
| jarFile | back to summary |
|---|---|
| private final JarFile jarFile | |
| relativePath | back to summary |
|---|---|
| private final String relativePath | |
| rootName | back to summary |
|---|---|
| private final String rootName | |
| rootUrl | back to summary |
|---|---|
| private final URL rootUrl | |
| JarFileResourceLoader | back to summary |
|---|---|
| pack-priv JarFileResourceLoader(final String rootName, final JarFile jarFile) | |
| JarFileResourceLoader | back to summary |
|---|---|
| pack-priv JarFileResourceLoader(final String rootName, final JarFile jarFile, final String relativePath) | |
| close | back to summary |
|---|---|
| public void close() Overrides default org. Doc from org. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| createCodeSource | back to summary |
|---|---|
| private CodeSource createCodeSource(final JarEntry entry) | |
| createSubloader | back to summary |
|---|---|
| public ResourceLoader createSubloader(final String relativePath, final String rootName) Overrides default org. Doc from org. Create a loader which loads resources under a relative subdirectory relative to this loader. If the resource
loader does not support subloaders,
| |
| extractJarPaths | back to summary |
|---|---|
| pack-priv static void extractJarPaths(final JarFile jarFile, String relativePath, final Collection<String> index) | |
| getClassSpec | back to summary |
|---|---|
| public synchronized ClassSpec getClassSpec(final String fileName) throws IOException Overrides org. Implements org. Doc from org. Get the class specification for the given class name. If no matching class is found,
| |
| getJarEntry | back to summary |
|---|---|
| private JarEntry getJarEntry(final String fileName) | |
| getJarURI | back to summary |
|---|---|
| private static URI getJarURI(final URI original, final String nestedPath) throws URISyntaxException | |
| getLibrary | back to summary |
|---|---|
| public String getLibrary(final String name) Overrides org. Implements org. Doc from org. Get the absolute physical filesystem path for a library with the given name. The resultant path should be
path-separated using " | |
| getLocation | back to summary |
|---|---|
| public URI getLocation() Overrides default org. Doc from org. Get the base location of the resources in this loader (if any). If the location is not known, or the resource
loader does not support locations, or the resource loader does not support this method,
| |
| getPackageSpec | back to summary |
|---|---|
| public PackageSpec getPackageSpec(final String name) throws IOException Overrides org. Implements org. Doc from org. Get the package specification for the given directory name. Always returns a package specification; this
method cannot be used to test for the existence of a package. A package spec should always be acquired from
the same resource loader which provided the class specification. The directory name will always be specified
using "
| |
| getPaths | back to summary |
|---|---|
| public Collection Overrides org. Implements org. Doc from org. Get the collection of resource paths. Called one time only when the resource loader is initialized. The
paths should use "
| |
| getResource | back to summary |
|---|---|
| public Resource getResource(String name) Overrides org. Implements org. Doc from org. Get a resource with the given name. If no such resource is available, | |
| getRootName | back to summary |
|---|---|
| public String getRootName() Overrides org. Overrides default org. Doc from org. Get the name of the root represented by this resource loader.
| |
| iterateResources | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Enumerate all the resources under the given path. The given path name is relative to the root
of the resource loader. If the path "escapes" the root via | |
| Modifier and Type | Field and Description |
|---|---|
| private final CodeSigner[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| private boolean | |
| public int |
| codeSigners | back to summary |
|---|---|
| private final CodeSigner[] codeSigners | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| CodeSigners | back to summary |
|---|---|
| pack-priv CodeSigners(final CodeSigner[] codeSigners) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| equals | back to summary |
|---|---|
| private boolean equals(final JarFileResourceLoader. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |