Package com.aspectran.core.util
Class SystemUtils
- java.lang.Object
-
- com.aspectran.core.util.SystemUtils
-
public class SystemUtils extends java.lang.ObjectHelpers for java.lang.System.
-
-
Constructor Summary
Constructors Constructor Description SystemUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetJavaIoTmpDir()static java.lang.StringgetProperty(java.lang.String name)Gets a System property, defaulting tonullif the property cannot be read.static java.lang.StringgetProperty(java.lang.String name, java.lang.String defVal)
-
-
-
Method Detail
-
getProperty
public static java.lang.String getProperty(java.lang.String name)
Gets a System property, defaulting to
nullif the property cannot be read.If a
SecurityExceptionis caught, the return value isnull.- Parameters:
name- the system property name- Returns:
- the system property value or
nullif a security problem occurs
-
getProperty
public static java.lang.String getProperty(java.lang.String name, java.lang.String defVal)
-
getJavaIoTmpDir
public static java.lang.String getJavaIoTmpDir()
-
-