Class PlatformClassifierFactory
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.PlatformClassifierFactory
@Description("Generates classifiers for protoc binaries based on the current platform")
@Named
public final class PlatformClassifierFactory
extends Object
Factory that can produce classifiers for dependencies based on the current platform.
- Author:
- Ashley Scopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassifier
(String binaryName) Determine the platform-specific classifier for the given binary name.
-
Constructor Details
-
PlatformClassifierFactory
-
-
Method Details
-
getClassifier
Determine the platform-specific classifier for the given binary name.- Parameters:
binaryName
- the name of the binary to resolve the classifier for.- Returns:
- the classifier value.
- Throws:
ResolutionException
- if the classifier cannot be resolved for this platform.
-