org.apache.maven.doxia.validation.advices

Interface MethodBeforeAdvice

Known Implementing Classes:
AbstractSinkAdvice, HangingElementAdvice, PrintAdvisor

public interface MethodBeforeAdvice

Advice invoked before a method is invoked. Such advices cannot prevent the method call proceeding, unless they throw a Throwable.
Author:
Rod Johnson

Method Summary

void
before(Method method, Object[] args, Object target)
Callback before a given method is invoked.

Method Details

before

public void before(Method method,
                   Object[] args,
                   Object target)
            throws Throwable
Callback before a given method is invoked.
Parameters:
method - method being invoked
args - arguments to the method
target - target of the method invocation. May be null.