Class ArchiverResolver

java.lang.Object
com.atlassian.bamboo.archive.ArchiverResolver

@Internal public class ArchiverResolver extends Object
A helper class for resolving archiver types into actual instances of archivers.
  • Constructor Details

    • ArchiverResolver

      public ArchiverResolver()
  • Method Details

    • getArchiver

      @NotNull public static @NotNull Archiver getArchiver(@NotNull @NotNull ArchiverType archiverType)
      Returns an instance of an archiver of the specified type.
      Parameters:
      archiverType - type of the archiver
      Returns:
      instance of an archiver of the specified type
      Throws:
      IllegalArgumentException - if an archiver of the specified type could not be constructed
    • getDefaultArchiveExtension

      @NotNull public static @NotNull String getDefaultArchiveExtension(@NotNull @NotNull ArchiverType archiverType)
      Returns default archive file extension for the specified archiver type. Note that archivers may handle more than one extension - this method will return the default one.
      Parameters:
      archiverType - type of the archiver
      Returns:
      default archive file extension for archives handled by specified archiver type