Package org.nutz.mvc.adaptor.injector

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


public class PairAdaptor extends AbstractAdaptor {

  @Override
  protected ParamInjector evalInjector(Class<?> type, Param param) {
    if (null == param)
      return new PathArgInjector(type);
    String pm = param.value();
    // POJO
    if ("..".equals(pm)) {
      if (type.isAssignableFrom(Map.class))
        return new MapPairInjector();
View Full Code Here


        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

                log.infof("Complie without debug info? can't deduce param name. fail back to PathArgInjector!! index=%d > %s",
                          index,
                          method);
      }
       
        return new PathArgInjector(method.getParameterTypes()[index]);
    }
View Full Code Here

TOP

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

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.