| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static NativePlatform |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract NativePlatform | |
| protected abstract int | Returns: the major version supportedQueries the major version number supported by this NativePlatformFactory. |
| protected abstract int | Returns: the minor version supportedQueries the minor version number supported by this NativePlatformFactory. |
| public static synchronized NativePlatform | Returns: a new NativePlatformObtains a NativePlatform that matches the platform on which we are running. |
| protected abstract boolean | Returns: true if we can run on this platform.Checks whether this NativePlatformFactory can work with the platform on which we are running |
| majorVersion | back to summary |
|---|---|
| private static final int majorVersion | |
| minorVersion | back to summary |
|---|---|
| private static final int minorVersion | |
| platform | back to summary |
|---|---|
| private static NativePlatform platform | |
| NativePlatformFactory | back to summary |
|---|---|
| public NativePlatformFactory() | |
| createNativePlatform | back to summary |
|---|---|
| protected abstract NativePlatform createNativePlatform() Creates a NativePlatform. This is only called if matches() was previously called and returned true.
| |
| getMajorVersion | back to summary |
|---|---|
| protected abstract int getMajorVersion() Queries the major version number supported by this NativePlatformFactory.
| |
| getMinorVersion | back to summary |
|---|---|
| protected abstract int getMinorVersion() Queries the minor version number supported by this NativePlatformFactory.
| |
| getNativePlatform | back to summary |
|---|---|
| public static synchronized NativePlatform getNativePlatform() Obtains a NativePlatform that matches the platform on which we are running. The system property monocle.platform defines a series of cascading fallbacks for what NativePlatform types to attempt to create. monocle .platform can be overridden to select a specific platform. For example, running with -Dmonocle.platform=Dispman, Linux selects the NativePlatform that works with the dispmanx libraries on the Raspberry Pi, but falls back to a generic software-rendered Linux framebuffer implementation if we are not running on a device with dispmanx libraries.
| |
| matches | back to summary |
|---|---|
| protected abstract boolean matches() Checks whether this NativePlatformFactory can work with the platform on which we are running
| |