public class CommonUtils
extends java.lang.Object
| Constructor and Description |
|---|
CommonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getHostName()
Returns the hostname using
InetAddress.getHostName() on InetAddress.getLocalHost(). |
static boolean |
isClassPresentOnClassPath(java.lang.String classSignature,
java.lang.ClassLoader classLoader)
This method is used to test if the given class is loaded in the specified ClassLoader
|
static boolean |
isNullOrEmpty(java.lang.String string) |
public static boolean isNullOrEmpty(java.lang.String string)
public static java.lang.String getHostName()
InetAddress.getHostName() on InetAddress.getLocalHost().
If an error is encountered, the error is logged and it returns null.public static boolean isClassPresentOnClassPath(java.lang.String classSignature,
java.lang.ClassLoader classLoader)
classSignature - Fully Qualified signature of classclassLoader - ClassLoader under consideration