Package org.easymock.internal
Class ObjenesisClassInstantiator
- java.lang.Object
-
- org.easymock.internal.ObjenesisClassInstantiator
-
- All Implemented Interfaces:
IClassInstantiator
public class ObjenesisClassInstantiator extends java.lang.Object implements IClassInstantiator
-
-
Constructor Summary
Constructors Constructor Description ObjenesisClassInstantiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectnewInstance(java.lang.Class<?> clazz)Return a new instance of the specified class.
-
-
-
Method Detail
-
newInstance
public java.lang.Object newInstance(java.lang.Class<?> clazz)
Description copied from interface:IClassInstantiatorReturn a new instance of the specified class. The recommended way is without calling any constructor. This is usually done by doing likeObjectInputStream.readObject()which is JVM specific.- Specified by:
newInstancein interfaceIClassInstantiator- Parameters:
clazz- class to instantiate- Returns:
- new instance of clazz
-
-