Package com.atlassian.bamboo.archive
Class ArchiverResolver
java.lang.Object
com.atlassian.bamboo.archive.ArchiverResolver
A helper class for resolving
archiver types
into actual instances of archivers
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @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.
-
Constructor Details
-
ArchiverResolver
public ArchiverResolver()
-
-
Method Details
-
getArchiver
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
-