Package org.eweb4j.mvc.action.annotation

Examples of org.eweb4j.mvc.action.annotation.ActionLevel


    action.setMethod(methodName);
    action.setName(actionName);
    action.setReqMethod(reqMethod);

    // 读取@ActionLevel注解
    ActionLevel actionLevel = cls.getAnnotation(ActionLevel.class);
    if (actionLevel == null)
      actionLevel = m.getAnnotation(ActionLevel.class);
    int level = 1;
    if (actionLevel != null)
      level = actionLevel.value();

    action.setLevel(String.valueOf(level));

    // 读取@Produces注解
    Produces producesAnn = m.getAnnotation(Produces.class);
View Full Code Here


    return pcbs;
  }

  private static int parseActionLevel(Class<?> cls, Method m) {
    // 读取@ActionLevel注解
    ActionLevel actionLevel = cls.getAnnotation(ActionLevel.class);
    if (actionLevel == null)
      actionLevel = m.getAnnotation(ActionLevel.class);
    int level = 1;
    if (actionLevel != null)
      level = actionLevel.value();
    return level;
  }
View Full Code Here

TOP

Related Classes of org.eweb4j.mvc.action.annotation.ActionLevel

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.