Class EventCapturingSinkProxy

java.lang.Object
org.apache.maven.doxia.sink.impl.EventCapturingSinkProxy
All Implemented Interfaces:
InvocationHandler

public class EventCapturingSinkProxy extends Object implements InvocationHandler
A proxy for a Sink which captures all event/method names called on it.
  • Method Details

    • newInstance

      public static org.apache.maven.doxia.sink.Sink newInstance(org.apache.maven.doxia.sink.Sink sink, List<String> capturedEventNames)
      Parameters:
      sink -
      capturedEventNames - the list to receive the captured event/method names
      Returns:
      a new, proxied sink
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable