
com.arpitos.framework.SystemProperties Maven / Gradle / Ivy
// Copyright <2018>
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
// OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package com.arpitos.framework;
/**
* This class holds all System properties
*
*
*
*/
public class SystemProperties {
private final String JavaRuntimeEnvironmentVersion = System.getProperty("java.version");
private final String JavaVirtualMachineSpecificationVersion = System.getProperty("java.vm.specification.version");
private final String JavaRuntimeEnvironmentSpecificationVersion = System.getProperty("java.specification.version");
private final String JavaClassPath = System.getProperty("java.class.path");
private final String ListofPathstoSearchWhenLoadingLibraries = System.getProperty("java.library.path");
private final String OperatingSystemName = System.getProperty("os.name");
private final String OperatingSystemArchitecture = System.getProperty("os.arch");
private final String OperatingSystemVersion = System.getProperty("os.version");
private final String FileSeparator = System.getProperty("file.separator");
private final String PathSeparator = System.getProperty("path.separator");
private final String UserAccountName = System.getProperty("user.name");
private final String UserHomeDir = System.getProperty("user.home");
private final String JavaInstallationDirectory = System.getProperty("java.home");
private final String JavaVirtualMachineSpecificationVendor = System.getProperty("java.vm.specification.vendor");
private final String JavaVirtualMachineSpecificationName = System.getProperty("java.vm.specification.name");
private final String JavaVirtualMachineImplementationVersion = System.getProperty("java.vm.version");
private final String JavaVirtualMachineImplementationVendor = System.getProperty("java.vm.vendor");
private final String JavaVirtualMachineImplementationName = System.getProperty("java.vm.name");
private final String JavaRuntimeEnvironmentSpecificationVendor = System.getProperty("java.specification.vendor");
private final String JavaRuntimeEnvironmentSpecificationName = System.getProperty("java.specification.name");
private final String JavaClassFormatVersionNumber = System.getProperty("java.class.version");
private final String DefaultTempFilePath = System.getProperty("java.io.tmpdir");
private final String NameOfJITCompilerToUse = System.getProperty("java.compiler");
private final String PathOfExtensionDir = System.getProperty("java.ext.dirs");
private final String UserCurrentWorkingDirectory = System.getProperty("user.dir");
public String getJavaRuntimeEnvironmentVersion() {
return JavaRuntimeEnvironmentVersion;
}
public String getJavaVirtualMachineSpecificationVersion() {
return JavaVirtualMachineSpecificationVersion;
}
public String getJavaRuntimeEnvironmentSpecificationVersion() {
return JavaRuntimeEnvironmentSpecificationVersion;
}
public String getJavaClassPath() {
return JavaClassPath;
}
public String getListofPathstoSearchWhenLoadingLibraries() {
return ListofPathstoSearchWhenLoadingLibraries;
}
public String getOperatingSystemName() {
return OperatingSystemName;
}
public String getOperatingSystemArchitecture() {
return OperatingSystemArchitecture;
}
public String getOperatingSystemVersion() {
return OperatingSystemVersion;
}
public String getFileSeparator() {
return FileSeparator;
}
public String getPathSeparator() {
return PathSeparator;
}
public String getUserAccountName() {
return UserAccountName;
}
public String getUserHomeDir() {
return UserHomeDir;
}
public String getJavaInstallationDirectory() {
return JavaInstallationDirectory;
}
public String getJavaVirtualMachineSpecificationVendor() {
return JavaVirtualMachineSpecificationVendor;
}
public String getJavaVirtualMachineSpecificationName() {
return JavaVirtualMachineSpecificationName;
}
public String getJavaVirtualMachineImplementationVersion() {
return JavaVirtualMachineImplementationVersion;
}
public String getJavaVirtualMachineImplementationVendor() {
return JavaVirtualMachineImplementationVendor;
}
public String getJavaVirtualMachineImplementationName() {
return JavaVirtualMachineImplementationName;
}
public String getJavaRuntimeEnvironmentSpecificationVendor() {
return JavaRuntimeEnvironmentSpecificationVendor;
}
public String getJavaRuntimeEnvironmentSpecificationName() {
return JavaRuntimeEnvironmentSpecificationName;
}
public String getJavaClassFormatVersionNumber() {
return JavaClassFormatVersionNumber;
}
public String getDefaultTempFilePath() {
return DefaultTempFilePath;
}
public String getNameOfJITCompilerToUse() {
return NameOfJITCompilerToUse;
}
public String getPathOfExtensionDir() {
return PathOfExtensionDir;
}
public String getUserCurrentWorkingDirectory() {
return UserCurrentWorkingDirectory;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy