Package com.dtolabs.rundeck.core.plugins
Interface PluginResourceLoader
-
- All Known Implementing Classes:
JarPluginProviderLoader,ScriptPluginProviderLoader,ZipResourceLoader
public interface PluginResourceLoaderList and load resources from a plugin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>listResources()java.io.InputStreamopenResourceStreamFor(java.lang.String name)Open a stream to load a resource
-
-
-
Method Detail
-
listResources
java.util.List<java.lang.String> listResources() throws PluginException, java.io.IOException- Returns:
- the list of resources available
- Throws:
PluginExceptionjava.io.IOException
-
openResourceStreamFor
java.io.InputStream openResourceStreamFor(java.lang.String name) throws PluginException, java.io.IOExceptionOpen a stream to load a resource- Parameters:
name- resource path and name- Returns:
- input stream for the resources, must be closed when finished, or null if the plugin does not support resources
- Throws:
PluginException- if a path is requested that was not in the pluginjava.io.IOException- if an error occurs
-
-