Class AnnotatedMethodFilter
java.lang.Object
org.springframework.integration.util.AnnotatedMethodFilter
- All Implemented Interfaces:
org.springframework.expression.MethodFilter
public class AnnotatedMethodFilter
extends java.lang.Object
implements org.springframework.expression.MethodFilter
A MethodFilter implementation that enables the following:
- matching on method name, if available
- exclusion of void-returning methods if 'requiresReply' is true
- limiting to annotated methods if at least one is present
- Since:
- 2.0
-
Constructor Summary
Constructors Constructor Description AnnotatedMethodFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.String methodName, boolean requiresReply)
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.reflect.Method>
filter(java.util.List<java.lang.reflect.Method> methods)
-
Constructor Details
-
AnnotatedMethodFilter
public AnnotatedMethodFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.String methodName, boolean requiresReply)
-
-
Method Details
-
filter
public java.util.List<java.lang.reflect.Method> filter(java.util.List<java.lang.reflect.Method> methods)- Specified by:
filter
in interfaceorg.springframework.expression.MethodFilter
-