mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-13 07:46:07 +01:00
Begin on platform abstraction interface
This commit is contained in:
parent
dbd8106b4a
commit
f227c44ec8
3 changed files with 30 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
package com.jozufozu.flywheel.platform;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
public abstract class ClientPlatform {
|
||||
private static final ClientPlatform INSTANCE;
|
||||
|
||||
static {
|
||||
try {
|
||||
INSTANCE =
|
||||
(ClientPlatform) Class.forName("com.jozufozu.flywheel.platform.ClientPlatformImpl").getConstructor()
|
||||
.newInstance();
|
||||
} catch (ClassNotFoundException | InvocationTargetException | InstantiationException | IllegalAccessException |
|
||||
NoSuchMethodException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static ClientPlatform getInstance() {
|
||||
return INSTANCE;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.jozufozu.flywheel.platform;
|
||||
|
||||
public class ClientPlatformImpl extends ClientPlatform {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.jozufozu.flywheel.platform;
|
||||
|
||||
public class ClientPlatformImpl extends ClientPlatform {
|
||||
}
|
Loading…
Reference in a new issue