com.atlassian.plugin.util.resource
Interface AlternativeResourceLoader

All Known Implementing Classes:
AlternativeDirectoryResourceLoader, NoOpAlternativeResourceLoader

public interface AlternativeResourceLoader

An alternative resource loader for use by plugins that wish to also support loading resources outside the usual resource loading of the particular plugin type.

Since:
2.2.0

Method Summary
 URL getResource(String path)
          Retrieve the URL of the resource from the directories.
 InputStream getResourceAsStream(String name)
          Load a given resource from the directories.
 

Method Detail

getResource

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

getResourceAsStream

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.


Copyright © 2010 Atlassian. All Rights Reserved.