
be.bagofwords.util.ReflectionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bow-utils Show documentation
Show all versions of bow-utils Show documentation
Utility classes that are used in the count-db project and other bow-* projects
package be.bagofwords.util;
public class ReflectionUtils {
public static T createObject(Class _class) {
try {
return _class.getConstructor().newInstance();
} catch (Exception e) {
throw new RuntimeException("Failed to create object from class " + _class + ". Does this class have an empty constructor?", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy