public abstract class AbstractPlatform extends Object implements Platform
Modifier and Type | Field and Description |
---|---|
protected String |
colonReplacement |
protected org.slf4j.Logger |
logger |
protected String |
separatorReplacement |
protected String |
whitespaceReplacement |
APPDATA_BASEDIR_PROPERTY, OLD_DATADIR_PROPERTY
Constructor and Description |
---|
AbstractPlatform() |
Modifier and Type | Method and Description |
---|---|
File |
getApplicationDataDir()
Returns the directory in which Aduna applications can store their
application-dependent data, returns 'getOSApplicationDataDir' unless the
system property "aduna.platform.applicationdata.dir" has been set.
|
File |
getApplicationDataDir(String applicationName)
Returns the directory in which a specific application can store all its
application-dependent data.
|
File |
getOSApplicationDataDir(String applicationName)
Returns the operating system dependend application data dir.
|
String |
getRelativeApplicationDataDir(String applicationName)
Get the directory relative to getApplicationDataDir() for the specified application.
|
String |
getRelativeApplicationDataDir(String applicationName,
boolean caseSensitive,
boolean replaceWhitespace,
boolean replaceColon) |
File |
getUserHome()
Returns the directory for the current user.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDirPreserveCase, dataDirReplaceColon, dataDirReplaceWhitespace, getName, getOSApplicationDataDir
protected final org.slf4j.Logger logger
protected String whitespaceReplacement
protected String separatorReplacement
protected String colonReplacement
public File getUserHome()
Platform
getUserHome
in interface Platform
public final File getApplicationDataDir()
Platform
getApplicationDataDir
in interface Platform
public final File getApplicationDataDir(String applicationName)
Platform
getApplicationDataDir
in interface Platform
applicationName
- the name of the application for which to determine the
directoryPlatform.getApplicationDataDir()
public final File getOSApplicationDataDir(String applicationName)
Platform
getOSApplicationDataDir
in interface Platform
public String getRelativeApplicationDataDir(String applicationName)
Platform
getRelativeApplicationDataDir
in interface Platform
applicationName
- the name of the applicationCopyright © 2001-2016 Aduna. All Rights Reserved.