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

persistence.beans.ConstructorUtil Maven / Gradle / Ivy

The newest version!
package persistence.beans;

import java.lang.reflect.Constructor;

public final class ConstructorUtil {

	private ConstructorUtil() {
	}

	public static Constructor getConstructor(Class cls, Class[] params) throws NoSuchMethodException {
		ReflectUtil.checkPackageAccess(cls);
		return cls.getConstructor(params);
	}

	public static Constructor[] getConstructors(Class cls) {
		ReflectUtil.checkPackageAccess(cls);
		return cls.getConstructors();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy