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

faxel.model.ClassInitializer Maven / Gradle / Ivy

Go to download

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