public abstract class NativePlatformFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
majorVersion |
private static int |
minorVersion |
private static NativePlatform |
platform |
Constructor and Description |
---|
NativePlatformFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract NativePlatform |
createNativePlatform()
Creates a NativePlatform.
|
protected abstract int |
getMajorVersion()
Queries the major version number supported by this NativePlatformFactory.
|
protected abstract int |
getMinorVersion()
Queries the minor version number supported by this NativePlatformFactory.
|
static NativePlatform |
getNativePlatform()
Obtains a NativePlatform that matches the platform on which we are running.
|
protected abstract boolean |
matches()
Checks whether this NativePlatformFactory can work with the platform on
which we are running
|
private static NativePlatform platform
private static final int majorVersion
private static final int minorVersion
protected abstract boolean matches()
protected abstract NativePlatform createNativePlatform()
protected abstract int getMajorVersion()
protected abstract int getMinorVersion()
public static NativePlatform getNativePlatform()