Class MethodHandler
- java.lang.Object
-
- org.apache.commons.digester.annotations.handlers.MethodHandler
-
- All Implemented Interfaces:
DigesterLoaderHandler<java.lang.annotation.Annotation,java.lang.reflect.Method>
public final class MethodHandler extends java.lang.Object implements DigesterLoaderHandler<java.lang.annotation.Annotation,java.lang.reflect.Method>
Handler that takes care to create theSetNextRuleProvider
andSetRootRuleProvider
.- Since:
- 2.1
-
-
Field Summary
Fields Modifier and Type Field Description private static int
SUPPORTED_ARGS
The default args size the method has to have in order to be analyzed.
-
Constructor Summary
Constructors Constructor Description MethodHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <A extends java.lang.annotation.Annotation,R extends Rule>
voiddoHandle(A methodAnnotation, java.lang.annotation.Annotation annotation, java.lang.reflect.Method method, java.lang.Class<?> type, FromAnnotationsRuleSet ruleSet)
private void
doHandle(java.lang.annotation.Annotation methodAnnotation, java.lang.reflect.Method method, java.lang.Class<?> type, FromAnnotationsRuleSet ruleSet)
void
handle(java.lang.annotation.Annotation annotation, java.lang.reflect.Method element, FromAnnotationsRuleSet ruleSet)
Handles the current visited element with the related current annotation.
-
-
-
Field Detail
-
SUPPORTED_ARGS
private static final int SUPPORTED_ARGS
The default args size the method has to have in order to be analyzed.- See Also:
- Constant Field Values
-
-
Method Detail
-
handle
public void handle(java.lang.annotation.Annotation annotation, java.lang.reflect.Method element, FromAnnotationsRuleSet ruleSet)
Handles the current visited element with the related current annotation.- Specified by:
handle
in interfaceDigesterLoaderHandler<java.lang.annotation.Annotation,java.lang.reflect.Method>
- Parameters:
annotation
- the current visited annotation.element
- the current visited element.ruleSet
- the annotationsRuleSet
where providers have to be added.
-
doHandle
private void doHandle(java.lang.annotation.Annotation methodAnnotation, java.lang.reflect.Method method, java.lang.Class<?> type, FromAnnotationsRuleSet ruleSet)
-
doHandle
private <A extends java.lang.annotation.Annotation,R extends Rule> void doHandle(A methodAnnotation, java.lang.annotation.Annotation annotation, java.lang.reflect.Method method, java.lang.Class<?> type, FromAnnotationsRuleSet ruleSet)
-
-