public class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> Class<T> |
getClass(T o)
Return the correctly-typed
Class of the given object. |
static <T> T |
newInstance(Class<T> theClass,
org.canova.api.conf.Configuration conf)
Create an object for the given class and initialize it from conf
|
static void |
printThreadInfo(PrintWriter stream,
String title)
Print all of the thread's information and stack traces.
|
static void |
setContentionTracing(boolean val) |
public static <T> T newInstance(Class<T> theClass, org.canova.api.conf.Configuration conf)
theClass
- class of which an object is createdconf
- Configurationpublic static void setContentionTracing(boolean val)
public static void printThreadInfo(PrintWriter stream, String title)
stream
- the stream totitle
- a string title for the stack traceCopyright © 2016. All Rights Reserved.