Package net.loyin.jFinal.anatation

Examples of net.loyin.jFinal.anatation.RouteBind


  @SuppressWarnings({ "rawtypes", "unchecked" })
  public static void add(Routes me){
    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

Related Classes of net.loyin.jFinal.anatation.RouteBind

Copyright © 2018 www.massapicom. 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.