org.apache.maven.doxia.validation.advices
Interface MethodBeforeAdvice

All Known Implementing Classes:
AbstractSinkAdvice

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(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
          Callback before a given method is invoked.
 

Method Detail

before

public void before(java.lang.reflect.Method method,
                   java.lang.Object[] args,
                   java.lang.Object target)
            throws java.lang.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.
Throws:
java.lang.Throwable - if this object wishes to abort the call. Any exception thrown will be returned to the caller if it's allowed by the method signature. Otherwise the exception will be wrapped as a runtime exception.


Copyright © {inceptionYear}-2006 null. All Rights Reserved.