|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.util.ReflectionUtils
public final class ReflectionUtils
ReflectionUtils is used to get instance from java reflection mechanism.
The class should have default constructor for getting instance.
Constructors are cached but instances are not cached. Each time you will get a new instance.
| 方法摘要 | ||
|---|---|---|
static
|
newInstance(Class<T> clazz)
Create an object for the given class. |
|
static
|
newInstance(String name)
Create an object for the given class. |
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static <T> T newInstance(Class<T> clazz)
clazz - class of which an object is created
GuaguaRuntimeException - In case any exception for reflection.public static <T> T newInstance(String name)
name - qualified class name.
GuaguaRuntimeException - In case any exception for reflection.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||