Examples of OperationContract


Examples of com.bj58.spat.gaea.server.contract.annotation.OperationContract

           }
         }
      } else {
         for(Method m : methods) {
           if(Modifier.isPublic(m.getModifiers()) || Modifier.isProtected(m.getModifiers())) {
             OperationContract oc = m.getAnnotation(OperationContract.class);
             if(oc != null) {
               ClassInfo.MethodInfo mi = new ClassInfo.MethodInfo();
               mi.setMethod(m);
               methodInfos.add(mi);
             }
View Full Code Here

Examples of com.bj58.spat.gaea.server.contract.annotation.OperationContract

   * @param mi
   * @return
   */
  private String getMethodName(MethodInfo mi) {
    String methodName = "";
    OperationContract oc = mi.getMethod().getAnnotation(OperationContract.class);
    if(oc == null) {
      methodName = mi.getMethod().getName();
    } else {
      if(!oc.methodName().equalsIgnoreCase(AnnotationUtil.DEFAULT_VALUE)) {
        methodName = oc.methodName();
      } else {
        methodName = mi.getMethod().getName();
      }
    }
    return methodName;
View Full Code Here

Examples of com.bj58.spat.gaea.server.contract.annotation.OperationContract

                }
            }
        }
        Parameter returnPara = new Parameter(null, methodInfo.getReturnType(), methodInfo.getGenericReturnType());
        String methodName = methodInfo.getName();
        OperationContract ann = methodInfo.getAnnotation(OperationContract.class);
        if (ann != null) {
            if (!ann.methodName().equals(AnnotationUtil.DEFAULT_VALUE)) {
                methodName = "$" + ann.methodName();
            }
        }
        InvokeResult result = proxy.invoke(returnPara, lookup, methodName, paras);

        if (result != null && result.getOutPara() != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.