Class AbstractMethodHandler<A extends Annotation>
java.lang.Object
org.apache.commons.digester3.annotations.handlers.AbstractMethodHandler<A>
- All Implemented Interfaces:
AnnotationHandler<A,
Method>
- Direct Known Subclasses:
SetNextHandler
,SetRootHandler
abstract class AbstractMethodHandler<A extends Annotation>
extends Object
implements AnnotationHandler<A,Method>
- Since:
- 3.0
-
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 TypeMethodDescriptionprotected abstract void
doBind
(String pattern, String namespaceURI, Method method, Class<?> type, boolean fireOnBegin, RulesBinder rulesBinder) private void
doHandle
(A methodAnnotation, Annotation annotation, Method method, Class<?> type, boolean fireOnBegin, RulesBinder rulesBinder) private void
doHandle
(A methodAnnotation, Method method, Class<?> type, boolean fireOnBegin, RulesBinder rulesBinder) void
handle
(A annotation, Method element, RulesBinder rulesBinder) 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
-
AbstractMethodHandler
AbstractMethodHandler()
-
-
Method Details
-
handle
Handles the current visited element with the related current annotation.- Specified by:
handle
in interfaceAnnotationHandler<A extends Annotation,
Method> - Parameters:
annotation
- the current visited annotation.element
- the current visited annotated element.rulesBinder
- the annotationsRulesBinder
where rules have to be bound.
-
doHandle
private void doHandle(A methodAnnotation, Method method, Class<?> type, boolean fireOnBegin, RulesBinder rulesBinder) -
doHandle
private void doHandle(A methodAnnotation, Annotation annotation, Method method, Class<?> type, boolean fireOnBegin, RulesBinder rulesBinder) -
doBind
protected abstract void doBind(String pattern, String namespaceURI, Method method, Class<?> type, boolean fireOnBegin, RulesBinder rulesBinder)
-