public class

NoOpAlternativeResourceLoader

extends Object
implements AlternativeResourceLoader
java.lang.Object
   ↳ com.atlassian.plugin.util.resource.NoOpAlternativeResourceLoader

Class Overview

Resource loader that always returns null

Summary

Public Constructors
NoOpAlternativeResourceLoader()
Public Methods
URL getResource(String path)
Retrieve the URL of the resource from the directories.
InputStream getResourceAsStream(String name)
Load a given resource from the directories.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.util.resource.AlternativeResourceLoader

Public Constructors

public NoOpAlternativeResourceLoader ()

Public Methods

public URL getResource (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

public InputStream getResourceAsStream (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.