通过定义一个HelperLoader类来加载所有的Helper类完成初始化。123456789101112131415161718192021222324252627package org.smart4j.framework;import org.smart4j.framework.helper.*;import org.smart4j.framework.util.ClassUtil;/** * 初始化框架 * 入口程序:加载Helper * Created by Roger on 2016/11/23. */public class HelperLoader { public static void init(){ Class<?>[] clsList = { ClassHelper.class, BeanHelper.class, // AopHelper在IocHelper之前加载 AopHelper.class, IocHelper.class, ControllerHelper.class }; for (Class<?> cls: clsList){ ClassUtil.loadClass(cls.getName(), true); } }}