Class CounterVisitor

    • Constructor Detail

      • CounterVisitor

        public CounterVisitor()
    • Method Detail

      • visitBefore

        public void visitBefore​(Element element,
                                ExecutionContext executionContext)
        Description copied from interface: BeforeVisitor
        Visits the beginning of an Element.
        Specified by:
        visitBefore in interface BeforeVisitor
        Parameters:
        element - the Element representing the beginning of the fragment. The Element's ancestors are traversable unless the global configuration parameter maintain.element.stack is set to false. The Element's child nodes are not traversable.
        executionContext - the current ExecutionContext
      • onPreExecution

        public void onPreExecution​(ExecutionContext executionContext)
        Description copied from interface: PreExecutionLifecycle
        Initialize the resources allocated by this resource for the specified ExecutionContext.

        Executes the initialization at the start of the filter execution.

        Specified by:
        onPreExecution in interface PreExecutionLifecycle
        Parameters:
        executionContext - The ExecutionContext.