public class ObjenesisClassInstantiator extends java.lang.Object implements IClassInstantiator
Constructor and Description |
---|
ObjenesisClassInstantiator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
newInstance(java.lang.Class<?> clazz)
Return a new instance of the specified class.
|
public java.lang.Object newInstance(java.lang.Class<?> clazz) throws java.lang.InstantiationException
IClassInstantiator
ObjectInputStream.readObject()
which is JVM specific.newInstance
in interface IClassInstantiator
clazz
- class to instantiatejava.lang.InstantiationException
- when an error occured during instantiation