|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.defne.utility.Utility
public final class Utility
Some utility methods for using all over the project.
| Method Summary | |
|---|---|
static String |
getAndSetSystemProperty(String propertyName,
String defaultValue)
Gets system property value with the given name. |
static String |
getExceptionMessage(DefneException e)
Build chain of exception message. |
static String |
getSystemProperty(String propertyName)
Gets system property value with the given name. |
static String |
getSystemProperty(String propertyName,
String defaultValue)
Gets system property value with the given name. |
static Throwable |
getTargetException(Exception exception)
Gets target exception if the given exception is InvocationTargetException. |
static void |
throwsDefneException(Exception throwable)
Check and throws defne exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Throwable getTargetException(Exception exception)
InvocationTargetException.
exception - throwed exception
public static void throwsDefneException(Exception throwable)
throwable - causepublic static String getSystemProperty(String propertyName)
propertyName - system property name
public static String getSystemProperty(String propertyName,
String defaultValue)
propertyName - system property namedefaultValue - default value
public static String getAndSetSystemProperty(String propertyName,
String defaultValue)
propertyName - system property namedefaultValue - default value
public static String getExceptionMessage(DefneException e)
e - defne exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||