
faxel.model.ClassInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of faxel Show documentation
Show all versions of faxel Show documentation
Faxel is excel to java mapping library.
Using handy annotations, developer no longer need to manually parse excel files.
The newest version!
package faxel.model;
import faxel.FaxelException;
final class ClassInitializer {
private ClassInitializer() {
throw new FaxelException("You should not create instance of ClassInitializer");
}
static T createSilently(Class clazz) {
try {
return clazz.newInstance();
} catch (Throwable cause) {
throw new FaxelException(
cause, "Cold not create object of class %s. Probably it does not have public non args constructor", clazz.getName()
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy