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 Details

    • PlatformClassifierFactory

      @Inject public PlatformClassifierFactory(HostSystem hostSystem)
  • Method Details

    • getClassifier

      public String getClassifier(String binaryName) throws ResolutionException
      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.