Package org.nutz.mvc

Examples of org.nutz.mvc.ObjectInfo


  @SuppressWarnings({"unchecked", "rawtypes"})
  public static void evalActionFilters(ActionInfo ai, Filters filters) {
    if (null != filters) {
      List<ObjectInfo<? extends ActionFilter>> list = new ArrayList<ObjectInfo<? extends ActionFilter>>(filters.value().length);
      for (By by : filters.value()) {
        list.add(new ObjectInfo(by.type(), by.args()));
      }
      ai.setFilterInfos(list.toArray(new ObjectInfo[list.size()]));
    }
  }
View Full Code Here


  }

  @SuppressWarnings({"unchecked", "rawtypes"})
  public static void evalHttpAdaptor(ActionInfo ai, AdaptBy ab) {
    if (null != ab) {
      ai.setAdaptorInfo((ObjectInfo<? extends HttpAdaptor>) new ObjectInfoab.type(),
                                          ab.args()));
    }
  }
View Full Code Here

    @SuppressWarnings({"unchecked", "rawtypes"})
    public static void evalActionFilters(ActionInfo ai, Filters filters) {
        if (null != filters) {
            List<ObjectInfo<? extends ActionFilter>> list = new ArrayList<ObjectInfo<? extends ActionFilter>>(filters.value().length);
            for (By by : filters.value()) {
                list.add(new ObjectInfo(by.type(), by.args()));
            }
            ai.setFilterInfos(list.toArray(new ObjectInfo[list.size()]));
        }
    }
View Full Code Here

    }

    @SuppressWarnings({"unchecked", "rawtypes"})
    public static void evalHttpAdaptor(ActionInfo ai, AdaptBy ab) {
        if (null != ab) {
            ai.setAdaptorInfo((ObjectInfo<? extends HttpAdaptor>) new ObjectInfo(    ab.type(),
                                                                                    ab.args()));
        }
    }
View Full Code Here

TOP

Related Classes of org.nutz.mvc.ObjectInfo

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.