Package com.gwtent.common.client

Examples of com.gwtent.common.client.CheckedExceptionWrapper


        Class<ClassMethodMatcher> classz = (Class<ClassMethodMatcher>) Class.forName(matchClassName);
        try {
          ClassMethodMatcher matcher = classz.getConstructor(null).newInstance(null);
          return matcher;
        } catch (Exception e) {
          throw new CheckedExceptionWrapper(e);
        }
      } catch (ClassNotFoundException e) {
        throw new CheckedExceptionWrapper(e);
      }
    }
View Full Code Here


    for (JMethod method : this.pointcuts.keySet()){
      try{
        if (pointcuts.get(method).getClassFilter().matches(clazz))
          return true;
      }catch (Throwable e){
        throw new CheckedExceptionWrapper("class: " + clazz.toString() + "  " + e.getMessage(), e);
      }
     
    }
   
    return false;
View Full Code Here

    for (JMethod amethod : this.pointcuts.keySet()){
      try{
        if (pointcuts.get(amethod).getMethodMatcher().matches(method, targetClass, args))
          return true;
      }catch (Throwable e){
        throw new CheckedExceptionWrapper("class: " + targetClass.toString() + "  Method: " + method.toString() + e.getMessage(), e);
      }
    }
   
    return false;
  }
View Full Code Here

    for (JMethod amethod : this.pointcuts.keySet()){
      try{
        if (pointcuts.get(amethod).getMethodMatcher().matches(javaMethod, javaClass))
          methods.add(amethod);
      }catch (Throwable e){
        throw new CheckedExceptionWrapper("class: " + method.getEnclosingType().toString() + "  Method: " + method.toString() + e.getMessage(), e);
      }
    }
   
    return methods;
  }
View Full Code Here

  public static Class<?> gwtTypeToJavaClass(JType type){
    try {
      return Class.forName(type.getJNISignature().substring(1, type.getJNISignature().length() - 1).replace('/', '.'));
    } catch (ClassNotFoundException e) {
      throw new CheckedExceptionWrapper("Cann't get class from gwt JClassType." + e.getMessage(), e);
    }
  }
View Full Code Here

      paramClasses[i] = gwtTypeToJavaClass(params[i].getType());
    }
    try {
      return clazz.getMethod(method.getName(), paramClasses);
    } catch (SecurityException e) {
      throw new CheckedExceptionWrapper(e);
    } catch (NoSuchMethodException e) {
      throw new CheckedExceptionWrapper("NoSuchMethod? GWT Method: " + method.toString() + " EnclosingType: " + method.getEnclosingType().toString(), e);
    }
  }
View Full Code Here

      ReflectionProxyGenerator gen = new ReflectionProxyGenerator();
      try {
        String classname = gen.generate(this.logger, context, type.getQualifiedSourceName());
        source.println("new " + classname + "();");
      } catch (UnableToCompleteException e) {
        throw new CheckedExceptionWrapper(e);
      }
    }
   
    source.outdent();
    source.println("}");
View Full Code Here

               }
             }else if (value instanceof Annotation){
               processAnnotation((Annotation)value);
             }
         } catch (Exception e){
           throw new CheckedExceptionWrapper(e);
         }
        
         if (method.getReturnType() != null){
           JType type = method.getReturnType();
           processJType(type);
View Full Code Here

          if (index > 0)
            sb.append(", ");
          sb.append(annoValueToCode(typeOracle, value, logger));
          index ++;
        } catch (Exception e){
          throw new CheckedExceptionWrapper(e);
        }
      }
      sb.append("}))");
     
    }else{
View Full Code Here

TOP

Related Classes of com.gwtent.common.client.CheckedExceptionWrapper

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.