com.atlassian.plugin.util.resource
Class NoOpAlternativeResourceLoader
java.lang.Object
com.atlassian.plugin.util.resource.NoOpAlternativeResourceLoader
- All Implemented Interfaces:
- AlternativeResourceLoader
public class NoOpAlternativeResourceLoader
- extends Object
- implements AlternativeResourceLoader
Resource loader that always returns null
- Since:
- 2.2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpAlternativeResourceLoader
public NoOpAlternativeResourceLoader()
getResource
public URL getResource(String path)
- Description copied from interface:
AlternativeResourceLoader
- Retrieve the URL of the resource from the directories.
- Specified by:
getResource in interface AlternativeResourceLoader
- 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
public InputStream getResourceAsStream(String name)
- Description copied from interface:
AlternativeResourceLoader
- Load a given resource from the directories.
- Specified by:
getResourceAsStream in interface AlternativeResourceLoader
- Parameters:
name - The name of the resource to be loaded.
- Returns:
- An InputStream for the resource, or null if the resource is not found.
Copyright © 2015 Atlassian. All rights reserved.