public interface ArtifactResolver
Artifactfiles. In order for it to be found by XL Deploy it should be annotated with the enclosed
|Modifier and Type||Interface and Description|
Denote which protocols the
|Modifier and Type||Method and Description|
This method is only called with a
Validate whether the
ResolvedArtifactFile resolveLocation(com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact artifact)
SourceArtifactthat has a
SourceArtifact.getFileUri()URI that contains (one of) the URI schemes that the
SourceArtifactfor which we need to resolve a
ResolvedArtifactFilefrom which you can obtain the
CannotLocateArtifactException- when the file pointed to by the artifact could not be found at the indicated URI.
boolean validateCorrectness(com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact artifact)
URIis correct with regards to the scheme specific part of the defined scheme. Only the resolver that "knows about" this scheme is able to do this. NOTE: There is no guarantee that when this method returns
true, that the location actually resolves to a file, or the file is present. It is implementation specific whether this is checked with this call.
SourceArtifactwhich needs to be validated with regards to its
URIhas a valid scheme specific part, i.e. this
ArtifactResolverwould be able to resolve it.