public class ResourceDescriptorFactory extends Object
Constructor and Description |
---|
ResourceDescriptorFactory() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.plugin.elements.ResourceDescriptor |
createResource(com.atlassian.plugin.Plugin plugin,
String resourceName,
String location,
Optional<String> contentType)
Creates a ResourceDescriptor for the file at
location within the given Plugin. |
public com.atlassian.plugin.elements.ResourceDescriptor createResource(com.atlassian.plugin.Plugin plugin, String resourceName, String location, Optional<String> contentType) throws FileNotFoundException
location
within the given Plugin.plugin
- the Plugin to load the resource fromresourceName
- the resource name with the pluginlocation
- the resource location within the pluginFileNotFoundException
- if there is no file at location
Copyright © 2002-2015 Atlassian. All Rights Reserved.