Class AlternativePluginResourceLoader
java.lang.Object
com.atlassian.plugin.util.resource.AlternativePluginResourceLoader
- All Implemented Interfaces:
AlternativeResourceLoader
public final class AlternativePluginResourceLoader
extends Object
implements AlternativeResourceLoader
Loads resources from the plugin.
- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String path) Retrieve the URL of the resource from the directories.getResourceAsStream(String name) Load a given resource from the directories.
-
Constructor Details
-
AlternativePluginResourceLoader
-
-
Method Details
-
getResource
Description copied from interface:AlternativeResourceLoaderRetrieve the URL of the resource from the directories.- Specified by:
getResourcein interfaceAlternativeResourceLoader- 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
Description copied from interface:AlternativeResourceLoaderLoad a given resource from the directories.- Specified by:
getResourceAsStreamin interfaceAlternativeResourceLoader- Parameters:
name- The name of the resource to be loaded.- Returns:
- An InputStream for the resource, or null if the resource is not found.
-