All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.headlessviewer.viewer.internal.IClassInstantiatorCE Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.headlessviewer.viewer.internal;

/**
 * Used to instantiate a given class.
 */
interface IClassInstantiatorCE {

    /**
     * Return a new instance of the specified class. The recommended way is without calling any constructor.
     * This is usually done by doing like ObjectInputStream.readObject() which is JVM specific.
     * 
     * @param c
     *            Class to instantiate
     * @return new instance of clazz
     */
    Object newInstance(Class clazz) throws InstantiationException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy