Examples of viewPath()


Examples of com.jfinal.ext.route.ControllerBind.viewPath()

        if (!autoScan) {
          continue;
        }
        this.add(controllerKey(controller), controller);
        logger.debug("routes.add(" + controllerKey(controller) + ", " + controller.getName() + ")");
      } else if (StrKit.isBlank(controllerBind.viewPath())) {
        this.add(controllerBind.controllerKey(), controller);
        logger.debug("routes.add(" + controllerBind.controllerKey() + ", " + controller.getName() + ")");
      } else {
        this.add(controllerBind.controllerKey(), controller, controllerBind.viewPath());
        logger.debug("routes.add(" + controllerBind.controllerKey() + ", " + controller + ","
View Full Code Here

Examples of com.jfinal.ext.route.ControllerBind.viewPath()

        logger.debug("routes.add(" + controllerKey(controller) + ", " + controller.getName() + ")");
      } else if (StrKit.isBlank(controllerBind.viewPath())) {
        this.add(controllerBind.controllerKey(), controller);
        logger.debug("routes.add(" + controllerBind.controllerKey() + ", " + controller.getName() + ")");
      } else {
        this.add(controllerBind.controllerKey(), controller, controllerBind.viewPath());
        logger.debug("routes.add(" + controllerBind.controllerKey() + ", " + controller + ","
            + controllerBind.viewPath() + ")");
      }
    }
  }
View Full Code Here

Examples of com.jfinal.ext.route.ControllerBind.viewPath()

        this.add(controllerBind.controllerKey(), controller);
        logger.debug("routes.add(" + controllerBind.controllerKey() + ", " + controller.getName() + ")");
      } else {
        this.add(controllerBind.controllerKey(), controller, controllerBind.viewPath());
        logger.debug("routes.add(" + controllerBind.controllerKey() + ", " + controller + ","
            + controllerBind.viewPath() + ")");
      }
    }
  }

  private String controllerKey(Class<Controller> clazz) {
View Full Code Here

Examples of net.loyin.jFinal.anatation.RouteBind.viewPath()

    List<Class> list= ClassSearcher.findClasses();
    if(list!=null&&list.isEmpty()==false){
      for(Class clz:list){
        RouteBind rb=(RouteBind)clz.getAnnotation(RouteBind.class);
        if(rb!=null){
          me.add(rb.path(),clz,rb.viewPath());
        }else if(clz.getSuperclass()!=null){
          if(clz.getSuperclass()==Controller.class||clz.getSuperclass().getSuperclass()==Controller.class){
            me.add("/"+clz.getSimpleName().replace("Controller", "").toLowerCase(),clz);
          }
        }
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.