org.springframework.integration.util
Class AnnotatedMethodFilter

java.lang.Object
  extended by org.springframework.integration.util.AnnotatedMethodFilter
All Implemented Interfaces:
MethodFilter

public class AnnotatedMethodFilter
extends java.lang.Object
implements MethodFilter

A MethodFilter implementation that enables the following:

  1. matching on method name, if available
  2. exclusion of void-returning methods if 'requiresReply' is true
  3. limiting to annotated methods if at least one is present

Since:
2.0

Constructor Summary
AnnotatedMethodFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.String methodName, boolean requiresReply)
           
 
Method Summary
 java.util.List<java.lang.reflect.Method> filter(java.util.List<java.lang.reflect.Method> methods)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedMethodFilter

public AnnotatedMethodFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                             java.lang.String methodName,
                             boolean requiresReply)
Method Detail

filter

public java.util.List<java.lang.reflect.Method> filter(java.util.List<java.lang.reflect.Method> methods)
Specified by:
filter in interface MethodFilter