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>
Handler that takes care to create the SetNext and SetRoot.
Since:
3.0
  • Field Details

    • SUPPORTED_ARGS

      private static final int SUPPORTED_ARGS
      The default args size the method has to have in order to be analyzed.
      See Also:
  • Constructor Details

    • AbstractMethodHandler

      AbstractMethodHandler()
  • Method Details

    • handle

      public void handle(A annotation, Method element, RulesBinder rulesBinder)
      Handles the current visited element with the related current annotation.
      Specified by:
      handle in interface AnnotationHandler<A extends Annotation,Method>
      Parameters:
      annotation - the current visited annotation.
      element - the current visited annotated element.
      rulesBinder - the annotations RulesBinder 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)