/** * Create a new HandlerMethodResolver for the specified handler type. * @param handlerType the handler class to introspect */ public HandlerMethodResolver(final Class<?> handlerType,final String baseurls[]) { this.typeLevelMapping = handlerType.getAnnotation(HandlerMapping.class); Method[] methods = handlerType.getMethods(); for(Method method:methods) { if (HandlerUtils.isHandlerMethod(handlerType,method)) { //System.out.println(method); handlerMethods.add(new MethodInfo(ClassUtils.getMostSpecificMethod(method, handlerType),baseurls)); } // else if (method.isAnnotationPresent(InitBinder.class)) { // initBinderMethods.add(ClassUtils.getMostSpecificMethod(method, handlerType)); // } else if (method.isAnnotationPresent(ModelAttribute.class)) { modelAttributeMethods.add(ClassUtils.getMostSpecificMethod(method, handlerType)); } } SessionAttributes sessionAttributes = handlerType.getAnnotation(SessionAttributes.class); this.sessionAttributesFound = (sessionAttributes != null); if (this.sessionAttributesFound) { this.sessionAttributeNames.addAll(Arrays.asList(sessionAttributes.value())); this.sessionAttributeTypes.addAll(Arrays.asList(sessionAttributes.types())); } }