Esempio n. 1
0
 private void initWebParams() {
   Method method = this.getMethod();
   Annotation[][] annotations = method.getParameterAnnotations();
   Type[] methodparameterTypes = method.getGenericParameterTypes();
   for (int i = 0; i < annotations.length; i++) {
     for (int j = 0; j < annotations[i].length; j++) {
       if (annotations[i][j] instanceof WebParam) {
         WebParam webParaAnno = (WebParam) annotations[i][j];
         WebParameterImpl parameter =
             new WebParameterImpl(
                 methodparameterTypes[i], webParaAnno.name(), i, webParaAnno.mode());
         parameters.put(parameter.getName(), parameter);
         break;
       }
     }
   }
 }