Class AlternativeClassLoaderResourceLoader
java.lang.Object
com.atlassian.plugin.util.resource.AlternativeClassLoaderResourceLoader
- All Implemented Interfaces:
AlternativeResourceLoader
public final class AlternativeClassLoaderResourceLoader
extends Object
implements AlternativeResourceLoader
Loads resources from the given class classloader.
- 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
-
AlternativeClassLoaderResourceLoader
public AlternativeClassLoaderResourceLoader() -
AlternativeClassLoaderResourceLoader
-
-
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.
-