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

ch.obermuhlner.scriptengine.java.constructor.ConstructorStrategy Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package ch.obermuhlner.scriptengine.java.constructor;

import javax.script.ScriptException;

/**
 * The strategy used to construct an instance of a {@link Class}.
 */
public interface ConstructorStrategy {
    /**
     * Constructs an instance of a {@link Class}.
     *
     * @param clazz the {@link Class}
     * @return the constructed instance or {@code null}
     * @throws ScriptException if the instance could not be constructed
     */
    Object construct(Class clazz) throws ScriptException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy