|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.mapreduceModule.util.ReflectionUtils
public class ReflectionUtils
General reflection utils
Constructor Summary | |
---|---|
ReflectionUtils()
|
Method Summary | ||
---|---|---|
static
|
getClass(T o)
Return the correctly-typed Class of the given object. |
|
static
|
newInstance(java.lang.Class<T> theClass,
Configuration conf)
Create an object for the given class and initialize it from conf |
|
static void |
setConf(java.lang.Object theObject,
Configuration conf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionUtils()
Method Detail |
---|
public static <T> T newInstance(java.lang.Class<T> theClass, Configuration conf)
theClass
- class of which an object is createdconf
- Configuration
public static <T> java.lang.Class<T> getClass(T o)
Class
of the given object.
o
- object whose correctly-typed Class
is to be obtained
Class
of the given object.public static void setConf(java.lang.Object theObject, Configuration conf)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |