public class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
newInstance(Class theClass,
Configuration conf)
Create an object for the given class and initialize it from conf
|
static void |
setConf(Object theObject,
Configuration conf)
Check and set 'configuration' if necessary.
|
public static void setConf(Object theObject, Configuration conf)
theObject
- object for which to set configurationconf
- Configurationpublic static Object newInstance(Class theClass, Configuration conf)
theClass
- class of which an object is createdconf
- ConfigurationCopyright © 2007, 2017, Oracle and/or its affiliates. All rights reserved.