org.springframework.web.method
Class HandlerMethodSelector
java.lang.Object
org.springframework.web.method.HandlerMethodSelector
public abstract class HandlerMethodSelector
- extends Object
Defines the algorithm for searching handler methods exhaustively including interfaces and parent
classes while also dealing with parameterized methods as well as interface and class-based proxies.
- Since:
- 3.1
- Author:
- Rossen Stoyanchev
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandlerMethodSelector
public HandlerMethodSelector()
selectMethods
public static Set<Method> selectMethods(Class<?> handlerType,
ReflectionUtils.MethodFilter handlerMethodFilter)
- Selects handler methods for the given handler type. Callers of this method define handler methods
of interest through the
ReflectionUtils.MethodFilter
parameter.
- Parameters:
handlerType
- the handler type to search handler methods onhandlerMethodFilter
- a ReflectionUtils.MethodFilter
to help recognize handler methods of interest
- Returns:
- the selected methods, or an empty set