Package com.atlassian.bamboo.archive
Class ArchiverResolver
- java.lang.Object
-
- com.atlassian.bamboo.archive.ArchiverResolver
-
@Internal public class ArchiverResolver extends Object
A helper class for resolvingarchiver types
into actual instances ofarchivers
.
-
-
Constructor Summary
Constructors Constructor Description ArchiverResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull Archiver
getArchiver(@NotNull ArchiverType archiverType)
Returns an instance of an archiver of the specified type.static @NotNull String
getDefaultArchiveExtension(@NotNull ArchiverType archiverType)
Returns default archive file extension for the specified archiver type.
-
-
-
Method Detail
-
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
-
-