Package com.iisigroup.cap.annotation

Examples of com.iisigroup.cap.annotation.HandlerType


  protected String getOperationName(IRequest params) {
    String methodId = params.get(FORM_ACTION);
    Method method = CapCommonUtil.findMethod(this.getClass(), methodId,
        (Class<?>) null);
    if (method != null) {
      HandlerType type = method.getAnnotation(HandlerType.class);
      if (type != null) {
        String op = type.name();
        if (op == null || "".equals(op)) {
          op = type.value().name();
        }
        return handlerOp.getValue(op, SIMPLE_OPERATION);
      }
    }
    return SIMPLE_OPERATION;
View Full Code Here


      boolean hasMethod = false;
      try {
        Method method = CapCommonUtil.findMethod(
            executeHandler.getClass(), methodId, (Class<?>) null);
        if (method != null) {
          HandlerType type = method.getAnnotation(HandlerType.class);
          if (type != null
              && HandlerTypeEnum.GRID.equals(type.value())) {
            rtn = getGridData(method, params);
          } else {
            rtn = (IResult) method.invoke(executeHandler, params);
          }
          hasMethod = true;
View Full Code Here

TOP

Related Classes of com.iisigroup.cap.annotation.HandlerType

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.