| java.lang.Object |
| ↳ |
com.atlassian.plugin.util.resource.AlternativeDirectoryResourceLoader |
Class Overview
Loads resources from directories configured via the system property plugin.resource.directories, which should
be a comma-delimited list of file paths that contain resources to load.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.plugin.util.resource.AlternativeResourceLoader
|
abstract
URL
|
getResource(String path)
Retrieve the URL of the resource from the directories.
|
|
abstract
InputStream
|
getResourceAsStream(String name)
Load a given resource from the directories.
|
|
Constants
public
static
final
String
PLUGIN_RESOURCE_DIRECTORIES
Constant Value:
"plugin.resource.directories"
Public Constructors
public
AlternativeDirectoryResourceLoader
()
Public Methods
public
URL
getResource
(String path)
Retrieve the URL of the resource from the directories.
Parameters
| path
| the name of the resource to be loaded |
Returns
- The URL to the resource, or null if the resource is not found
public
InputStream
getResourceAsStream
(String name)
Load a given resource from the directories.
Parameters
| name
| The name of the resource to be loaded. |
Returns
- An InputStream for the resource, or null if the resource is not found.
public
List<File>
getResourceDirectories
()