Package org.nutz.mvc.annotation

Examples of org.nutz.mvc.annotation.Views


    }
  }


  private ViewMaker[] createViewMakers(Class<?> mainModule) throws Exception {
    Views vms = mainModule.getAnnotation(Views.class);
    ViewMaker[] makers;
    int i = 0;
    if (null != vms) {
      makers = new ViewMaker[vms.value().length + 1];
      for (; i < vms.value().length; i++)
        makers[i] = Mirror.me(vms.value()[i]).born();

    } else {
      makers = new ViewMaker[1];
    }
    makers[i] = new DefaultViewMaker();// 优先使用用户自定义
View Full Code Here


            log.debug("@Localization not define");
        }
    }

    private ViewMaker[] createViewMakers(Class<?> mainModule) throws Exception {
        Views vms = mainModule.getAnnotation(Views.class);
        ViewMaker[] makers;
        int i = 0;
        if (null != vms) {
            makers = new ViewMaker[vms.value().length + 1];
            for (; i < vms.value().length; i++)
                makers[i] = Mirror.me(vms.value()[i]).born();

        } else {
            makers = new ViewMaker[1];
        }
        makers[i] = new DefaultViewMaker();// 优先使用用户自定义
View Full Code Here

            log.debug("@Localization not define");
        }
    }

    protected ViewMaker[] createViewMakers(Class<?> mainModule, Ioc ioc) throws Exception {
        Views vms = mainModule.getAnnotation(Views.class);
        ViewMaker[] makers;
        int i = 0;
        if (null != vms) {
            makers = new ViewMaker[vms.value().length + 1];
            for (; i < vms.value().length; i++) {
              if (vms.value()[i].getAnnotation(IocBean.class) != null && ioc != null) {
                makers[i] = ioc.get(vms.value()[i]);
              } else {
                makers[i] = Mirror.me(vms.value()[i]).born();
              }
            }
        } else {
            makers = new ViewMaker[1];
        }
View Full Code Here

TOP

Related Classes of org.nutz.mvc.annotation.Views

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.