public class XmlPluginArtifact extends Object implements PluginArtifact
PluginArtifact.HasExtraModuleDescriptors| Constructor and Description |
|---|
XmlPluginArtifact(File xmlFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsJavaExecutableCode() |
boolean |
containsSpringContext() |
boolean |
doesResourceExist(String name)
Always returns false, since it doesn't make sense for an XML artifact
|
InputStream |
getInputStream() |
String |
getName() |
ReferenceMode |
getReferenceMode() |
InputStream |
getResourceAsStream(String name)
Always returns null, since it doesn't make sense for an XML artifact
|
File |
toFile() |
public XmlPluginArtifact(File xmlFile)
public boolean doesResourceExist(String name)
doesResourceExist in interface PluginArtifactpublic InputStream getResourceAsStream(String name) throws PluginParseException
getResourceAsStream in interface PluginArtifactPluginParseException - if the there was an exception retrieving the resource from the artifactpublic String getName()
getName in interface PluginArtifactpublic InputStream getInputStream()
getInputStream in interface PluginArtifactpublic File toFile()
toFile in interface PluginArtifactpublic boolean containsJavaExecutableCode()
containsJavaExecutableCode in interface PluginArtifacttrue if the plugin contains or references java executable code.public boolean containsSpringContext()
containsSpringContext in interface PluginArtifacttrue if the plugin contains Spring context files or instructionspublic ReferenceMode getReferenceMode()
getReferenceMode in interface PluginArtifactCopyright © 2019 Atlassian. All rights reserved.