Examples of MethodFilter


Examples of org.eclipse.persistence.platform.database.oracle.publisher.MethodFilter

                whatItIs = IS_TOPLEVEL;
                packageName = "";
            }
            try {
                typ = (SqlTypeWithMethods)sqlReflector.addSqlUserType(schemaPattern,
                    packageName, whatItIs, true, 0, 0, new MethodFilter() {
                        public boolean acceptMethod(ProcedureMethod method, boolean preApprove) {
                            String methodName = method.getName();
                            if (sqlMatch(procedurePattern, methodName)) {
                                return true;
                            }
View Full Code Here

Examples of org.jboss.forge.furnace.proxy.javassist.util.proxy.MethodFilter

                     if (hierarchy.length > 0)
                        f.setInterfaces(hierarchy);

                     final Class<?>[] finalHierarchy = hierarchy;
                     final MethodFilter filter = new MethodFilter()
                     {
                        @Override
                        public boolean isHandled(Method method)
                        {
                           Class<?> declaringClass = method.getDeclaringClass();
View Full Code Here

Examples of org.jboss.forge.furnace.proxy.javassist.util.proxy.MethodFilter

                     }
                  }
                  else
                     hierarchy = Arrays.copy(types, new Class<?>[types.length]);

                  final MethodFilter filter = new MethodFilter()
                  {
                     @Override
                     public boolean isHandled(Method method)
                     {
                        if (!method.getDeclaringClass().getName().contains("java.lang")
View Full Code Here

Examples of org.springframework.expression.MethodFilter

      TypeConverter typeConverter = context.getTypeConverter();
      Class<?> type = (targetObject instanceof Class ? (Class<?>) targetObject : targetObject.getClass());
      Method[] methods = getMethods(type, targetObject);

      // If a filter is registered for this type, call it
      MethodFilter filter = (this.filters != null ? this.filters.get(type) : null);
      if (filter != null) {
        List<Method> methodsForFiltering = new ArrayList<Method>();
        for (Method method: methods) {
          methodsForFiltering.add(method);
        }
        List<Method> methodsFiltered = filter.filter(methodsForFiltering);
        if (CollectionUtils.isEmpty(methodsFiltered)) {
          methods = NO_METHODS;
        }
        else {
          methods = methodsFiltered.toArray(new Method[methodsFiltered.size()]);
View Full Code Here

Examples of org.springframework.expression.MethodFilter

      TypeConverter typeConverter = context.getTypeConverter();
      Class<?> type = (targetObject instanceof Class ? (Class<?>) targetObject : targetObject.getClass());
      Method[] methods = type.getMethods();
     
      // If a filter is registered for this type, call it
      MethodFilter filter = (this.filters != null ? this.filters.get(type) : null);
      if (filter != null) {
          List<Method> methodsForFiltering = new ArrayList<Method>();
          for (Method method: methods) {
            methodsForFiltering.add(method);
          }
        List<Method> methodsFiltered = filter.filter(methodsForFiltering);
        if (CollectionUtils.isEmpty(methodsFiltered)) {
          methods = NO_METHODS;
        }
        else {
          methods = methodsFiltered.toArray(new Method[methodsFiltered.size()]);
View Full Code Here

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

Examples of org.springframework.util.ReflectionUtils.MethodFilter

    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

Examples of org.springframework.util.ReflectionUtils.MethodFilter

    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

Examples of org.springframework.util.ReflectionUtils.MethodFilter

            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

Examples of org.springframework.util.ReflectionUtils.MethodFilter

                    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
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.