Class MethodHandler
java.lang.Object
org.apache.commons.digester.annotations.handlers.MethodHandler
- All Implemented Interfaces:
DigesterLoaderHandler<Annotation,
Method>
Handler that takes care to create the
SetNextRuleProvider
and
SetRootRuleProvider
.- Since:
- 2.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
The default args size the method has to have in order to be analyzed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <A extends Annotation,
R extends Rule>
voiddoHandle
(A methodAnnotation, Annotation annotation, Method method, Class<?> type, FromAnnotationsRuleSet ruleSet) private void
doHandle
(Annotation methodAnnotation, Method method, Class<?> type, FromAnnotationsRuleSet ruleSet) void
handle
(Annotation annotation, Method element, FromAnnotationsRuleSet ruleSet) Handles the current visited element with the related current annotation.
-
Field Details
-
SUPPORTED_ARGS
private static final int SUPPORTED_ARGSThe default args size the method has to have in order to be analyzed.- See Also:
-
-
Constructor Details
-
MethodHandler
public MethodHandler()
-
-
Method Details
-
handle
Handles the current visited element with the related current annotation.- Specified by:
handle
in interfaceDigesterLoaderHandler<Annotation,
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(Annotation methodAnnotation, Method method, Class<?> type, FromAnnotationsRuleSet ruleSet) -
doHandle
private <A extends Annotation,R extends Rule> void doHandle(A methodAnnotation, Annotation annotation, Method method, Class<?> type, FromAnnotationsRuleSet ruleSet)
-