Exemplo n.º 1
0
 public static boolean isWrapperClassExists(Method method) {
   Wrapper requestWrapper = new RequestWrapper();
   requestWrapper.setMethod(method);
   try {
     requestWrapper.getWrapperClass();
     boolean isOneWay = method.isAnnotationPresent(Oneway.class);
     if (!isOneWay) {
       Wrapper responseWrapper = new ResponseWrapper();
       responseWrapper.setMethod(method);
       responseWrapper.getWrapperClass();
     }
   } catch (Exception e) {
     return false;
   }
   return true;
 }