Package com.jfinal.core

Examples of com.jfinal.core.ActionKey


  private String createActionKey(Class<? extends Controller> controllerClass,
                                 Method method, String controllerKey) {
    String methodName = method.getName();
    String actionKey = "";

    ActionKey ak = method.getAnnotation(ActionKey.class);
    if (ak != null) {
      actionKey = ak.value().trim();
      if ("".equals(actionKey))
        throw new IllegalArgumentException(controllerClass.getName() + "." + methodName + "(): The argument of ActionKey can not be blank.");
      if (!actionKey.startsWith(SLASH))
        actionKey = SLASH + actionKey;
    } else if (methodName.equals("index")) {
View Full Code Here


  private String createActionKey(Class<? extends Controller> controllerClass,
      Method method, String controllerKey) {
    String methodName = method.getName();
    String actionKey = "";

    ActionKey ak = method.getAnnotation(ActionKey.class);
    if (ak != null) {
      actionKey = ak.value().trim();
      if ("".equals(actionKey))
        throw new IllegalArgumentException(controllerClass.getName() + "." + methodName + "(): The argument of ActionKey can not be blank.");
      if (!actionKey.startsWith(SLASH))
        actionKey = SLASH + actionKey;
    }
View Full Code Here

  private String createActionKey(Class<? extends Controller> controllerClass,
                                 Method method, String controllerKey) {
    String methodName = method.getName();
    String actionKey = "";

    ActionKey ak = method.getAnnotation(ActionKey.class);
    if (ak != null) {
      actionKey = ak.value().trim();
      if ("".equals(actionKey))
        throw new IllegalArgumentException(controllerClass.getName() + "." + methodName + "(): The argument of ActionKey can not be blank.");
      if (!actionKey.startsWith(SLASH))
        actionKey = SLASH + actionKey;
    } else if (methodName.equals("index")) {
View Full Code Here

  private String createActionKey(Class<? extends Controller> controllerClass,
                                 Method method, String controllerKey) {
    String methodName = method.getName();
    String actionKey = "";

    ActionKey ak = method.getAnnotation(ActionKey.class);
    if (ak != null) {
      actionKey = ak.value().trim();
      if ("".equals(actionKey))
        throw new IllegalArgumentException(controllerClass.getName() + "." + methodName + "(): The argument of ActionKey can not be blank.");
      if (!actionKey.startsWith(SLASH))
        actionKey = SLASH + actionKey;
    } else if (methodName.equals("index")) {
View Full Code Here

TOP

Related Classes of com.jfinal.core.ActionKey

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.