org.smart4j.framework.HelperLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-framework Show documentation
Show all versions of smart-framework Show documentation
Smart Framework is a lightweight Java Web Framework
package org.smart4j.framework;
import org.smart4j.framework.aop.AopHelper;
import org.smart4j.framework.dao.DatabaseHelper;
import org.smart4j.framework.ioc.BeanHelper;
import org.smart4j.framework.ioc.IocHelper;
import org.smart4j.framework.mvc.ActionHelper;
import org.smart4j.framework.orm.EntityHelper;
import org.smart4j.framework.plugin.PluginHelper;
import org.smart4j.framework.util.ClassUtil;
/**
* 加载相应的 Helper 类
*
* @author huangyong
* @since 2.0
*/
public final class HelperLoader {
public static void init() {
// 定义需要加载的 Helper 类
Class>[] classList = {
DatabaseHelper.class,
EntityHelper.class,
ActionHelper.class,
BeanHelper.class,
AopHelper.class,
IocHelper.class,
PluginHelper.class,
};
// 按照顺序加载类
for (Class> cls : classList) {
ClassUtil.loadClass(cls.getName());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy