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
 java.net.URL getResource(java.lang.String path)
          Retrieve the URL of the resource from the directories.
 java.io.InputStream getResourceAsStream(java.lang.String name)
          Load a given resource from the directories.
 

Method Detail

getResource

java.net.URL getResource(java.lang.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

java.io.InputStream getResourceAsStream(java.lang.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 © 2009 Atlassian Pty Ltd. All Rights Reserved.