Package org.springframework.util.ReflectionUtils

Examples of org.springframework.util.ReflectionUtils.MethodFilter


    Map<String, Map<Class<?>, HandlerMethod>> handlerMethods = new HashMap<String, Map<Class<?>, HandlerMethod>>();

    final Map<Class<?>, HandlerMethod> candidateMethods = new HashMap<Class<?>, HandlerMethod>();
    final Map<Class<?>, HandlerMethod> candidateMessageMethods = new HashMap<Class<?>, HandlerMethod>();
    final Class<?> targetClass = this.getTargetClass(targetObject);
    MethodFilter methodFilter = new UniqueMethodFilter(targetClass);
    ReflectionUtils.doWithMethods(targetClass, new MethodCallback() {
      @Override
      public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
        boolean matchesAnnotation = false;
        if (method.isBridge()) {
View Full Code Here


    Class<?> handlerType = (handler instanceof String) ?
        getApplicationContext().getType((String) handler) : handler.getClass();

    final Class<?> userType = ClassUtils.getUserClass(handlerType);
       
    Set<Method> methods = HandlerMethodSelector.selectMethods(userType, new MethodFilter() {
      public boolean matches(Method method) {
        return getMappingForMethod(method, userType) != null;
      }
    });
   
View Full Code Here

    Class<?> handlerType = (handler instanceof String) ?
        getApplicationContext().getType((String) handler) : handler.getClass();

    final Class<?> userType = ClassUtils.getUserClass(handlerType);

    Set<Method> methods = HandlerMethodSelector.selectMethods(userType, new MethodFilter() {
      public boolean matches(Method method) {
        return getMappingForMethod(method, userType) != null;
      }
    });
View Full Code Here

            RestResource restResource = AnnotationUtils.findAnnotation(marshallingServiceClass, RestResource.class);
            Class<?> serviceClass = restResource.service();

            Map<Method, ClientRequestHandlerInfo> methodRequestHandlers = new HashMap<Method, ClientRequestHandlerInfo>();

            Set<Method> methods = HandlerMethodSelector.selectMethods(marshallingServiceClass, new MethodFilter() {
                @Override
                public boolean matches(Method method) {
                    return (AnnotationUtils.findAnnotation(method, RequestMapping.class) != null);
                }
            });
View Full Code Here

                    throw new RuntimeException("Error loading interface class.", e);
                } catch (LinkageError e) {
                    throw new RuntimeException("Error loading interface class.", e);
                }

                Set<Method> methods = HandlerMethodSelector.selectMethods(marshallingServiceClass, new MethodFilter() {
                    @Override
                    public boolean matches(Method method) {
                        return (getMappingForMethod(method, marshallingServiceClass) != null);
                    }
                });
View Full Code Here

    for (String beanName : beanNames) {

      Class<?> handlerType = context.getType(beanName);
      final Class<?> userType = ClassUtils.getUserClass(handlerType);

      Set<Method> methods = HandlerMethodSelector.selectMethods(userType, new MethodFilter() {
        @Override
        public boolean matches(Method method) {
          return AnnotationUtils.findAnnotation(method, ExtDirectMethod.class) != null;
        }
      });
View Full Code Here

    for (String beanName : beanNames) {

      Class<?> handlerType = context.getType(beanName);
      final Class<?> userType = ClassUtils.getUserClass(handlerType);

      Set<Method> methods = HandlerMethodSelector.selectMethods(userType, new MethodFilter() {
        @Override
        public boolean matches(Method method) {
          return AnnotationUtils.findAnnotation(method, ExtDirectMethod.class) != null;
        }
      });
View Full Code Here

  }

  private <A extends Annotation> void initHandlerMethods(String beanName, Class<?> handlerType,
      final Class<A> annotationType, MultiValueMap<String, WampHandlerMethod> handlerMethods) {

    Set<Method> methods = HandlerMethodSelector.selectMethods(handlerType, new MethodFilter() {
      @Override
      public boolean matches(Method method) {
        return AnnotationUtils.findAnnotation(method, annotationType) != null;
      }
    });
View Full Code Here

    for (String beanName : beanNames) {

      Class<?> handlerType = context.getType(beanName);
      final Class<?> userType = ClassUtils.getUserClass(handlerType);

      Set<Method> methods = ExtDirectSpringUtil.selectMethods(userType, new MethodFilter() {
        public boolean matches(Method method) {
          return AnnotationUtils.findAnnotation(method, ExtDirectMethod.class) != null;
        }
      });
View Full Code Here

    for (String beanName : beanNames) {

      Class<?> handlerType = context.getType(beanName);
      final Class<?> userType = ClassUtils.getUserClass(handlerType);

      Set<Method> methods = HandlerMethodSelector.selectMethods(userType, new MethodFilter() {
        @Override
        public boolean matches(Method method) {
          return AnnotationUtils.findAnnotation(method, ExtDirectMethod.class) != null;
        }
      });
View Full Code Here

TOP

Related Classes of org.springframework.util.ReflectionUtils.MethodFilter

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.