Module it.tidalwave.messagebus
Package it.tidalwave.messagebus.spi
Interface ReflectionUtils.MethodProcessor
- Enclosing class:
ReflectionUtils
public static interface ReflectionUtils.MethodProcessor
A processor of the methods of a hierarchy of classes. For each class of the hierarchy,
filter(Class) is called first: if it returns
ReflectionUtils.MethodProcessor.FilterResult.ACCEPT, process(Method) is then called for each method declared in that class.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe result offilter(Class):ACCEPTif the methods of the class must be processed,IGNOREotherwise. -
Method Summary
Modifier and TypeMethodDescriptionDecides whether the methods declared in the given class must be processed.default voidProcesses a method.
-
Method Details
-
filter
Decides whether the methods declared in the given class must be processed. The default implementation accepts all the classes.- Parameters:
clazz- the class- Returns:
ACCEPTif the methods must be processed,IGNOREotherwise
-
process
Processes a method. The default implementation does nothing.- Parameters:
method- the method
-