Package org.springbyexample.mvc.bind.annotation

Examples of org.springbyexample.mvc.bind.annotation.RestRequestResource.methodName()


                RestRequestResource restRequestResource = AnnotationUtils.findAnnotation(method, RestRequestResource.class);
                boolean export = (restRequestResource != null ? restRequestResource.export() : true);

                // if the method declaring class is in the parent, get the return type from the service or converter (because of erasure)
                if (!marshallingServiceClass.equals(method.getDeclaringClass())) {
                    String restRequestResourceMethodName = (restRequestResource != null ? restRequestResource.methodName() : null);
                    String methodName = (StringUtils.hasText(restRequestResourceMethodName) ? restRequestResourceMethodName : method.getName());
                    Class<?>[] paramTypes = method.getParameterTypes();

                    try {
                        Method serviceMethod = ReflectionUtils.findMethod(serviceClass, methodName, paramTypes);
View Full Code Here


                if (restRequestResource.service() != ServiceValueConstants.DEFAULT_SERVICE_CLASS) {
                    handlerServiceClass = restRequestResource.service();
                }

                // explicit method name specified
                if (StringUtils.hasText(restRequestResource.methodName())) {
                    methodName = restRequestResource.methodName();
                }
            }

            Object handler = ctx.getBean(handlerServiceClass);
View Full Code Here

                    handlerServiceClass = restRequestResource.service();
                }

                // explicit method name specified
                if (StringUtils.hasText(restRequestResource.methodName())) {
                    methodName = restRequestResource.methodName();
                }
            }

            Object handler = ctx.getBean(handlerServiceClass);
            Method serviceMethod = ClassUtils.getMethod(handlerServiceClass, methodName, paramTypes);
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.