Modifier and Type | Method and Description |
---|---|
public default void | close()
Implements java. |
public default ResourceLoader | Returns: the resource loader, ornull if subloaders are not supportedthe relative path relativePath, String the name of the subloader's root rootName)Create a loader which loads resources under a relative subdirectory relative to this loader. |
public ClassSpec | Returns: the class specification, ornull if the named class is not foundthe fileName of the class, e.g. for the class fileName)org.jboss.modules.ResourceLoader
the fileName will be org/jboss/modules/ResourceLoader.class Get the class specification for the given class name. |
public String | Returns: the path ornull if the library is not presentthe name name)Get the absolute physical filesystem path for a library with the given name. |
public default URI | Returns: the base location of the resources in this loader, ornull if not availableGet the base location of the resources in this loader (if any). |
public PackageSpec | Returns: the package specificationthe directory name name)Get the package specification for the given directory name. |
public Collection | |
public Resource | Returns: the resource, ornull if it is not availablethe resource name name)Get a resource with the given name. |
public default String | Returns: the name of the root
Deprecated
Get the name of the root represented by this resource loader.
|
close | back to summary |
---|---|
public default void close() Implements java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
|
createSubloader | back to summary |
---|---|
public default ResourceLoader createSubloader(String relativePath, String rootName) Create a loader which loads resources under a relative subdirectory relative to this loader. If the resource
loader does not support subloaders,
|
getClassSpec | back to summary |
---|---|
public ClassSpec getClassSpec(String fileName) throws IOException Get the class specification for the given class name. If no matching class is found,
|
getLibrary | back to summary |
---|---|
public String getLibrary(String name) 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 default URI getLocation() 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(String name) throws IOException 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 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) Get a resource with the given name. If no such resource is available, |
getRootName | back to summary |
---|---|
public default String getRootName()
Deprecated
Get the name of the root represented by this resource loader.
|