KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > easymock > classextension > internal > IClassInstantiator


1 /*
2  * Copyright (c) 2003-2004 OFFIS. This program is made available under the terms of
3  * the MIT License.
4  */

5 package org.easymock.classextension.internal;
6
7 /**
8  * Used to instantiate a given class.
9  */

10 public interface IClassInstantiator {
11
12     /**
13      * Return a new instance of the specified class. The recommended way is
14      * without calling any constructor. This is usually done by doing like
15      * <code>ObjectInputStream.readObject()</code> which is JVM specific.
16      *
17      * @param c
18      * Class to instantiate
19      * @return new instance of clazz
20      */

21     Object JavaDoc newInstance(Class JavaDoc clazz) throws InstantiationException JavaDoc;
22 }
23
Popular Tags