Added sqlite support and fixed some issues
This commit is contained in:
parent
78205d97af
commit
fcbaef3e76
26 changed files with 348 additions and 371 deletions
|
|
@ -39,13 +39,13 @@ public abstract class OSAbstractionLayer {
|
|||
// Variables
|
||||
private static OSAbstractionLayer instance;
|
||||
|
||||
public OSAbstractionLayer getInstance(){
|
||||
public static OSAbstractionLayer getInstance(){
|
||||
if(instance == null)
|
||||
instance = getAbstractionLayer();
|
||||
return instance;
|
||||
}
|
||||
|
||||
private OSAbstractionLayer getAbstractionLayer(){
|
||||
private static OSAbstractionLayer getAbstractionLayer(){
|
||||
String os = System.getProperty("os.name");
|
||||
if (os.contains("Linux")) return new OsalLinuxImpl();
|
||||
else if(os.contains("Windows")) return new OsalWindowsImpl();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue