| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final String | |
| private static final Logger | |
| private final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | ResourceClassLoader(String prefix, ClassLoader parent)
Given a parent classloader and the prefix to apply to the lookup path Creates a ResourceClassLoader able to load classes from resources prefixed with "prefix" |
| Modifier and Type | Method and Description |
|---|---|
| protected Class | findClass(String
The binary name of the class className)Overrides java. |
| protected URL | findResource(String
The resource name name)Overrides java. |
| protected Enumeration | findResources(String
The resource name name)Overrides java. URL objects
representing all the resources with the given name.
|
| public URL | getResource(String
The resource name name)Overrides java. |
| public Enumeration | getResources(String
The resource name resourceName)Overrides java. |
| public synchronized Class | loadClass(String
The binary name of the class name, boolean If resolve)true then resolve the classOverrides java. |
| private String | |
| private URL | translateFromVFSToPhysicalURL(URL vfsUrl)
DEV-8100 add support for Jboss AS jersey does not understand Jboss VFS URLs , so we use Jboss VFS classes to translate those URLs to file: URLs |
| private void | unpackVfsResourceToPhysicalURLLocation(URL physicalUrl, Object vfsVirtualFile, Method recursiveCopy)
|
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| implementationVersion | back to summary |
|---|---|
| private final String implementationVersion | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| prefix | back to summary |
|---|---|
| private final String prefix | |
| PRIVATE_CLASS_SUFFIX | back to summary |
|---|---|
| private static final String PRIVATE_CLASS_SUFFIX | |
| ResourceClassLoader | back to summary |
|---|---|
| public ResourceClassLoader(String prefix, ClassLoader parent) Given a parent classloader and the prefix to apply to the lookup path Creates a ResourceClassLoader able to load classes from resources prefixed with "prefix" | |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Finds the class with the specified binary name.
This method should be overridden by class loader implementations that
follow the delegation model for loading classes, and will be invoked by
the
| |
| findResource | back to summary |
|---|---|
| protected URL findResource(String name) Overrides java. Doc from java. Finds the resource with the given name. Class loader implementations should override this method. For resources in named modules then the method must implement the
rules for encapsulation specified in the
| |
| findResources | back to summary |
|---|---|
| protected Enumeration Overrides java. Doc from java. Returns an enumeration of For resources in named modules then the method must implement the
rules for encapsulation specified in the
| |
| getResource | back to summary |
|---|---|
| public URL getResource(String name) Overrides java. 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
| |
| getResources | back to summary |
|---|---|
| public Enumeration Overrides java. 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
| |
| loadClass | back to summary |
|---|---|
| public synchronized Class Overrides java. Doc from java. Loads the class with the specified binary name. The default implementation of this method searches for classes in the following order:
If the class was found using the above steps, and the
Subclasses of Unless overridden, this method synchronizes on the result of
| |
| replaceWithPrivateSuffix | back to summary |
|---|---|
| private String replaceWithPrivateSuffix(String name) | |
| translateFromVFSToPhysicalURL | back to summary |
|---|---|
| private URL translateFromVFSToPhysicalURL(URL vfsUrl) throws IOException DEV-8100 add support for Jboss AS jersey does not understand Jboss VFS URLs , so we use Jboss VFS classes to translate those URLs to file: URLs | |
| unpackVfsResourceToPhysicalURLLocation | back to summary |
|---|---|
| private void unpackVfsResourceToPhysicalURLLocation(URL physicalUrl, Object vfsVirtualFile, Method recursiveCopy) throws IllegalAccessException, InvocationTargetException | |