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