|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.util.ObjectCreator
public final class ObjectCreator
Creates instance of any object, given its full qualified class name is given and it has a public accessable constructor. This class is a static class it can not be instantiated
| 方法摘要 | |
|---|---|
static Class |
createClass(String className)
|
static Object |
createObject(Class classObject)
Instantaite an Object instance |
static Object |
createObject(Class classObject,
Object[] params)
Instantaite an Object instance, requires a constractor with parameters |
static Object |
createObject(String className)
Instantaite an Object from a given class name |
static Object |
createObject(String className,
Object[] params)
Instantaite an Object instance, requires a constructor with parameters |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static Object createObject(String className)
throws Exception
className - full qualified name of the class
Exception - if instantiation failed
public static Object createObject(Class classObject)
throws Exception
classObject - Class object representing the object type to be instantiated
Exception - if instantiation failed
public static Object createObject(String className,
Object[] params)
throws Exception
className - full qualified name of the classparams - an array including the required parameters to instantaite the
object
Exception - if instantiation failed
public static Object createObject(Class classObject,
Object[] params)
throws Exception
classObject - , Class object representing the object type to be instantiatedparams - an array including the required parameters to instantaite the
object
Exception - if instantiation failedpublic static Class createClass(String className)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||