@ParametersAreNonnullByDefault public class ClassPathResourceLoader extends Object implements ResourceLoader
Constructor and Description |
---|
ClassPathResourceLoader() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Option<URL> |
getResource(com.atlassian.plugin.Plugin plugin,
String resourcePath)
Opens URL to given resource from plugin.
|
com.atlassian.fugue.Option<URL> |
getResource(String resourcePath)
Opens URL to given resource from JIRA Core.
|
com.atlassian.fugue.Option<InputStream> |
getResourceAsStream(com.atlassian.plugin.Plugin plugin,
String resourcePath)
Opens stream to given resource from plugin.
|
com.atlassian.fugue.Option<InputStream> |
getResourceAsStream(String resourcePath)
Opens stream to given resource from JIRA Core.
|
public com.atlassian.fugue.Option<InputStream> getResourceAsStream(String resourcePath)
ResourceLoader
Class.getResourceAsStream(String)
for exact
semantics.getResourceAsStream
in interface ResourceLoader
resourcePath
- path to resourcepublic com.atlassian.fugue.Option<URL> getResource(String resourcePath)
ResourceLoader
Class.getResource(String)
for exact semantics.getResource
in interface ResourceLoader
resourcePath
- path to resourcepublic com.atlassian.fugue.Option<InputStream> getResourceAsStream(com.atlassian.plugin.Plugin plugin, String resourcePath)
ResourceLoader
Class.getResourceAsStream(String)
for exact semantics.getResourceAsStream
in interface ResourceLoader
resourcePath
- path to resourcepublic com.atlassian.fugue.Option<URL> getResource(com.atlassian.plugin.Plugin plugin, String resourcePath)
ResourceLoader
Class.getResource(String)
for exact semantics.getResource
in interface ResourceLoader
resourcePath
- path to resourceCopyright © 2002-2018 Atlassian. All Rights Reserved.