public class ReflectionUtil extends Object
| Constructor and Description |
|---|
ReflectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
newInstance(Class<T> theClass,
org.apache.hadoop.conf.Configuration conf)
Create an object for the given class and initialize it from conf
|
static void |
setConf(Object theObject,
org.apache.hadoop.conf.Configuration conf)
Check and set 'configuration' if necessary.
|
public static <T> T newInstance(Class<T> theClass, org.apache.hadoop.conf.Configuration conf)
theClass - class of which an object is createdconf - Configurationpublic static void setConf(Object theObject, org.apache.hadoop.conf.Configuration conf)
theObject - object for which to set configurationconf - ConfigurationCopyright © 2017 The Apache Software Foundation. All rights reserved.