public class AlternativeDirectoryResourceLoader extends Object implements AlternativeResourceLoader
plugin.resource.directories, which should
be a comma-delimited list of file paths that contain resources to load.| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_RESOURCE_DIRECTORIES |
| Constructor and Description |
|---|
AlternativeDirectoryResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
URL |
getResource(String path)
Retrieve the URL of the resource from the directories.
|
InputStream |
getResourceAsStream(String name)
Load a given resource from the directories.
|
List<File> |
getResourceDirectories() |
public static final String PLUGIN_RESOURCE_DIRECTORIES
public URL getResource(String path)
getResource in interface AlternativeResourceLoaderpath - the name of the resource to be loadedpublic InputStream getResourceAsStream(String name)
getResourceAsStream in interface AlternativeResourceLoadername - The name of the resource to be loaded.Copyright © 2019 Atlassian. All rights reserved.