Interface PluginArtifact
- All Known Implementing Classes:
JarPluginArtifact
public interface PluginArtifact
Interface representing an artifact used to install the plugin.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Checks if the underlying resource actually exists.getId()Returns a string identifying the artifact.Retrieves aPluginManifestfrom the artifact.getResource(String location) Returns the resource located in the artifact.
-
Method Details
-
getResource
Returns the resource located in the artifact.- Parameters:
location- determines the resource to be returned- Returns:
- stream of the requested resource
- Throws:
IOException- when problems accessing the resource occur.
-
getManifest
Retrieves aPluginManifestfrom the artifact.- Returns:
- plugin's manifest
- Throws:
IOException- when problems accessing the artifact occur.PluginException- when the artifact doesn't contain a valid manifest.
-
getId
String getId()Returns a string identifying the artifact.- Returns:
- string identifying the artifact e.g. 'jar:/path/to/file.jar'
-
exists
boolean exists()Checks if the underlying resource actually exists.- Returns:
- does the underlying resource actually exists.
-