Class NoOpAlternativeResourceLoader
java.lang.Object
com.atlassian.plugin.util.resource.NoOpAlternativeResourceLoader
- All Implemented Interfaces:
AlternativeResourceLoader
Resource loader that always returns null
- Since:
- 2.2.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
-
NoOpAlternativeResourceLoader
public NoOpAlternativeResourceLoader()
-
-
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.
-