Interface AlternativeResourceLoader
- All Known Implementing Classes:
AlternativeClassLoaderResourceLoader,AlternativeDirectoryResourceLoader,AlternativePluginResourceLoader,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
Modifier and TypeMethodDescriptiongetResource(String path) Retrieve the URL of the resource from the directories.getResourceAsStream(String name) Load a given resource from the directories.
-
Method Details
-
getResource
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
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.
-