| Modifier and Type | Field and Description |
|---|---|
| private final CodeSource | |
| protected final AccessControlContext | context
Deprecated
as a consequence of
AccessControlContext being deprecated.
|
| private final Manifest | |
| protected final Path | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | PathResourceLoader(final String rootName, final Path root, final AccessControlContext context)
Deprecated
as a consequence of
AccessControlContext being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| 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 <T, E extends Throwable> T | doPrivilegedIfNeeded(AccessControlContext context, Class<E> exceptionType, PrivilegedExceptionAction<T> action)
Deprecated
as a consequence of
AccessControlContext being deprecated.
|
| pack-priv static <T> T | doPrivilegedIfNeeded(AccessControlContext context, PrivilegedExceptionAction<T> action)
Deprecated
as a consequence of
AccessControlContext being deprecated.
|
| public 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. |
| public String | getLibrary(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(final String
the resource name name)Overrides org. Implements org. |
| public String | getRootName()
Overrides org. Overrides default org. |
| public Iterator | iterateResources(final String
the path to search under startPath, final boolean true to recursively descend into subdirectories, false to only read this pathImplements org. |
| private Manifest |
| codeSource | back to summary |
|---|---|
| private final CodeSource codeSource | |
| context | back to summary |
|---|---|
| protected final AccessControlContext context
Deprecated as a consequence of | |
| manifest | back to summary |
|---|---|
| private final Manifest manifest | |
| root | back to summary |
|---|---|
| protected final Path root | |
| rootName | back to summary |
|---|---|
| private final String rootName | |
| PathResourceLoader | back to summary |
|---|---|
| pack-priv PathResourceLoader(final String rootName, final Path root, final AccessControlContext context)
Deprecated as a consequence of | |
| 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,
| |
| doPrivilegedIfNeeded | back to summary |
|---|---|
| pack-priv static <T, E extends Throwable> T doPrivilegedIfNeeded(AccessControlContext context, Class<E> exceptionType, PrivilegedExceptionAction<T> action) throws PrivilegedExceptionAction-:E
Deprecated as a consequence of | |
| doPrivilegedIfNeeded | back to summary |
|---|---|
| pack-priv static <T> T doPrivilegedIfNeeded(AccessControlContext context, PrivilegedExceptionAction<T> action)
Deprecated as a consequence of | |
| getClassSpec | back to summary |
|---|---|
| public 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,
| |
| getLibrary | back to summary |
|---|---|
| public String getLibrary(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(final 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 | |
| readManifestFile | back to summary |
|---|---|
| private Manifest readManifestFile(final Path manifestFile) | |