|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.util.ConstructorHelper
This class helps us to construct new instances. We don't want to rely on public default constructors and have to try hard to also use private or protected constructors.
| Method Summary | |
static java.lang.Object |
instantiate(java.lang.Class clazz)
create a new instance of class clazz. |
static java.lang.Object |
instantiate(java.lang.reflect.Constructor constructor)
create a new instance of the class represented by the no-argument constructor provided |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.Object instantiate(java.lang.Class clazz)
throws java.lang.InstantiationException
clazz - the class to instantiate
java.lang.InstantiationException
public static java.lang.Object instantiate(java.lang.reflect.Constructor constructor)
throws java.lang.InstantiationException
constructor - the zero argument constructor for the class
java.lang.InstantiationException
ClassNotPersistenceCapableException - if the constructor is null or there is an
exception while trying to create a new instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||