public class Utils extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CGLIB_IDENTIFIER |
protected static String |
JAVASSIST_IDENTIFIER |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(Closeable is) |
static <T> String[] |
getObjectVoidMethods(Class<T> clazz)
primarily used in Grinder to discover what methods to call
|
static String |
getThreadIdentifier()
Returns a
String which can be used to correlate log messages. |
static Object |
internalForm(Permissions p)
Returns the internal representation of a
Permissions object. |
static Permissions |
toPermissions(Object o)
Returns a
Permissions instance from its internal representation. |
static <T extends IObject> |
trueClass(Class<T> source)
finds the "true" class identified by a given Class object.
|
static <T extends IObject> |
trueInstance(Class<T> source)
instantiates an object using the trueClass.
|
protected static final String CGLIB_IDENTIFIER
protected static final String JAVASSIST_IDENTIFIER
public static <T extends IObject> Class<T> trueClass(Class<T> source)
source
- Regular or CGLIB-based class.public static <T extends IObject> T trueInstance(Class<T> source)
source
- Regular or CGLIB-based class.public static <T> String[] getObjectVoidMethods(Class<T> clazz)
clazz
- public static Object internalForm(Permissions p)
Permissions
object.
Should be used with caution!public static Permissions toPermissions(Object o)
Permissions
instance from its internal representation.
Should be used with caution!public static String getThreadIdentifier()
String
which can be used to correlate log messages.public static void closeQuietly(Closeable is)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.