Package org.nutz.mvc.annotation

Examples of org.nutz.mvc.annotation.Modules.scanPackage()


    return ai;
  }

  public static Set<Class<?>> scanModules(Class<?> mainModule) {
    Modules ann = mainModule.getAnnotation(Modules.class);
    boolean scan = null == ann ? false : ann.scanPackage();
    // 准备扫描列表
    List<Class<?>> list = new LinkedList<Class<?>>();
    list.add(mainModule);
    if (null != ann) {
      for (Class<?> module : ann.value()) {
View Full Code Here


        return ai;
    }

    public static Set<Class<?>> scanModules(Class<?> mainModule) {
        Modules ann = mainModule.getAnnotation(Modules.class);
        boolean scan = null == ann ? false : ann.scanPackage();
        // 准备扫描列表
        List<Class<?>> list = new LinkedList<Class<?>>();
        list.add(mainModule);
        if (null != ann) {
            for (Class<?> module : ann.value()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.