Class HostSystem

java.lang.Object
io.github.ascopes.protobufmavenplugin.utils.HostSystem

@Named @Singleton public final class HostSystem extends Object
A bean that exposes information about the underlying platform and the context of the invocation.

Unlike most beans, this can be a global singleton.

Author:
Ashley Scopes
  • Constructor Details

  • Method Details

    • getOperatingSystem

      public String getOperatingSystem()
    • getCpuArchitecture

      public String getCpuArchitecture()
    • isProbablyLinux

      public boolean isProbablyLinux()
    • isProbablyAndroid

      public boolean isProbablyAndroid()
    • isProbablyMacOs

      public boolean isProbablyMacOs()
    • isProbablyWindows

      public boolean isProbablyWindows()
    • getWorkingDirectory

      public Path getWorkingDirectory()
    • getJavaExecutablePath

      public Path getJavaExecutablePath()
    • getSystemPath

      public List<Path> getSystemPath()
    • getPathSeparator

      public String getPathSeparator()
    • getSystemPathExtensions

      public SortedSet<String> getSystemPathExtensions()