@InterfaceAudience.Private public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Constructor<T> |
findConstructor(Class<T> type,
Object... paramTypes) |
static <T> T |
instantiateWithCustomCtor(String className,
Class<?>[] ctorArgTypes,
Object[] ctorArgs) |
static void |
logThreadInfo(org.apache.commons.logging.Log log,
String title,
long minInterval)
Log the current thread stacks at INFO level.
|
static <T> T |
newInstance(Class<T> type,
Object... params) |
public static <T> T instantiateWithCustomCtor(String className, Class<?>[] ctorArgTypes, Object[] ctorArgs)
public static <T> Constructor<T> findConstructor(Class<T> type, Object... paramTypes)
public static void logThreadInfo(org.apache.commons.logging.Log log,
String title,
long minInterval)
log - the logger that logs the stack tracetitle - a descriptive title for the call stacksminInterval - the minimum time from the lastCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.