DefaultClassInstantiator, ObjenesisClassInstantiatorpublic interface IClassInstantiator
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
newInstance(java.lang.Class<?> clazz) |
Return a new instance of the specified class.
|
java.lang.Object newInstance(java.lang.Class<?> clazz)
throws java.lang.InstantiationException
ObjectInputStream.readObject() which is JVM specific.clazz - class to instantiatejava.lang.InstantiationException - when an error occured during instantiationCopyright © 2001-2019 EasyMock contributors. This documentation is provided under the terms of the Apache 2 licence.