Examples of toGenericString()


Examples of java.lang.reflect.Method.toGenericString()

        checkParameter(field.getParameters().get(0), f, f.toGenericString(), f.getName());
    }

    public void visitAbstractSetterMethod(AbstractSetterMethod setterMethod) {
        final Method m = setterMethod.getMethod();
        checkParameter(setterMethod.getParameters().get(0), m, m.toGenericString(), "1");
    }

    public void visitAbstractResourceMethod(AbstractResourceMethod method) {
        checkParameters(method, method.getMethod());
View Full Code Here

Examples of java.lang.reflect.Method.toGenericString()

         throw new GwtFinderException("Count method not found in "
                  + current.getClass().getCanonicalName() + " method " + m.getName());
      }
      if (countM.getParameterTypes().length > 0) {
         throw new GwtFinderException("Too many parameter in count method "
                  + countM.toGenericString());
      }

      final int count = (Integer) countM.invoke(current);
      return findInIterable(new Iterable<Object>() {
View Full Code Here

Examples of java.lang.reflect.Method.toGenericString()

                    // Ensure the method has only the one parameter
                    if (method.getParameterTypes().length != 1) {
                        throw new StripesRuntimeException(
                            "A method marked with @SpringBean must have exactly one parameter: " +
                            "the bean to be injected. Method [" + method.toGenericString() + "] has " +
                            method.getParameterTypes().length + " parameters."
                        );
                    }
                }
            }
View Full Code Here

Examples of java.lang.reflect.Method.toGenericString()

        for (Map.Entry<Method, Method> entry : AnnotationUtils.findReportedMethods(target.getClass()).entrySet()) {
            Method concreteMethod = entry.getKey();
            Method annotatedMethod = entry.getValue();

            if (!isGetter(concreteMethod)) {
                throw new RuntimeException("report annotation on non-getter " + annotatedMethod.toGenericString());
            }

            String attributeName = getAttributeName(concreteMethod);

            ReportedBeanAttributeBuilder attributeBuilder = attributeBuilders.get(attributeName);
View Full Code Here

Examples of java.lang.reflect.Method.toGenericString()

    public static void main(String[] args) throws Exception
    {
        Method m = FindTheParameterizedType.class.getMethod("method", Map.class, List.class);

        out.println(m.toString());
        out.println(m.toGenericString());

        Type[] types = m.getGenericParameterTypes();
        ParameterizedType pt = (ParameterizedType) types[0];

        Type keyType = pt.getActualTypeArguments()[0];
View Full Code Here

Examples of java.lang.reflect.Method.toGenericString()

        final Method handlingMethod = invocable.getHandlingMethod();
        int paramCount = 0;
        int nonAnnotetedParameters = 0;

        for (Parameter p : invocable.getParameters()) {
            validateParameter(p, handlingMethod, handlingMethod.toGenericString(), Integer.toString(++paramCount), false);
            if (method.getType() == ResourceMethod.JaxrsType.SUB_RESOURCE_LOCATOR
                    && Parameter.Source.ENTITY == p.getSource()) {
                Errors.fatal(method, LocalizationMessages.SUBRES_LOC_HAS_ENTITY_PARAM(invocable.getHandlingMethod()));
            } else if (p.getAnnotations().length == 0) {
                nonAnnotetedParameters++;
View Full Code Here

Examples of java.lang.reflect.Method.toGenericString()

            if (log.isDebugEnabled()) {
                log.debug("Exception invoking a method of " +
                        serviceImplClass.toString() + " of instance " +
                        serviceInstance.toString());
                log.debug("Exception type thrown: " + e.getClass().getName());
                log.debug("Method = " + target.toGenericString());
                for (int i = 0; i < methodInputParams.length; i++) {
                    String value = (methodInputParams[i] == null) ? "null" :
                            methodInputParams[i].getClass().toString();
                    log.debug(" Argument[" + i + "] is " + value);
                }
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.