Package net.loyin.jFinal.anatation

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.