Package org.apache.maven.doxia.sink.impl
Class EventCapturingSinkProxy
- java.lang.Object
-
- org.apache.maven.doxia.sink.impl.EventCapturingSinkProxy
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class EventCapturingSinkProxy extends java.lang.Object implements java.lang.reflect.InvocationHandler
A proxy for a Sink which captures all event/method names called on it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
static org.apache.maven.doxia.sink.Sink
newInstance(org.apache.maven.doxia.sink.Sink sink, java.util.List<java.lang.String> capturedEventNames)
-
-
-
Method Detail
-
newInstance
public static org.apache.maven.doxia.sink.Sink newInstance(org.apache.maven.doxia.sink.Sink sink, java.util.List<java.lang.String> capturedEventNames)
- Parameters:
sink
-capturedEventNames
- the list to receive the captured event/method names- Returns:
- a new, proxied sink
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
-