Package org.nutz.mvc.adaptor.injector

Examples of org.nutz.mvc.adaptor.injector.NameInjector


    // POJO[]
    else if (type.isArray())
      return new ArrayInjector(pm, type);

    // Name-value
    return new NameInjector(pm, type);
  }
View Full Code Here


        // POJO[]
        else if (clazz.isArray())
            return new ArrayInjector(pm, clazz, paramTypes);

        // Name-value
        return new NameInjector(pm, clazz, paramTypes);
    }
View Full Code Here

     * 这是最后的大招了,查一下形参的名字,作为@Param("形参名")进行处理
     */
    protected ParamInjector paramNameInject(Method method, int index) {
        List<String> names = MethodParamNamesScaner.getParamNames(method);
        if (names != null)
            return new NameInjector(names.get(index), method.getParameterTypes()[index], null);
        else if (log.isInfoEnabled())
            log.info("Complie without debug info? can't deduce param name. fail back to PathArgInjector!! index="
                     + index);
        return new PathArgInjector(method.getParameterTypes()[index]);
    }
View Full Code Here

        // POJO[]
        else if (clazz.isArray())
            return new ArrayInjector(pm, clazz, paramTypes);

        // Name-value
        return new NameInjector(pm, datefmt, clazz, paramTypes);
    }
View Full Code Here

     */
    protected ParamInjector paramNameInject(Method method, int index) {
      if (!Lang.isAndroid) {
        List<String> names = MethodParamNamesScaner.getParamNames(method);
            if (names != null)
                return new NameInjector(names.get(index),
                                        null,
                                        method.getParameterTypes()[index],
                                        null);
            else if (log.isInfoEnabled())
                log.infof("Complie without debug info? can't deduce param name. fail back to PathArgInjector!! index=%d > %s",
View Full Code Here

TOP

Related Classes of org.nutz.mvc.adaptor.injector.NameInjector

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.