persistence.beans.ConstructorUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databeans Show documentation
Show all versions of databeans Show documentation
Fully object-oriented persistence for Java.
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();
}
}