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

com.jfinal.weixin.sdk.utils.ClassUtils Maven / Gradle / Ivy

package com.jfinal.weixin.sdk.utils;

/**
 * 类工具
 * @author L.cm
 *
 */
public abstract class ClassUtils {

    /**
     * 确定class是否可以被加载
     * @param className 完整类名
     * @param classLoader 类加载
     * @return {boolean}
     */
    public static boolean isPresent(String className, ClassLoader classLoader) {
        try {
            Class.forName(className, true, classLoader);
            return true;
        }
        catch (Throwable ex) {
            // Class or one of its dependencies is not present...
            return false;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy