Package org.apache.maven.doxia.sink.impl
Class PipelineSink
- java.lang.Object
-
- org.apache.maven.doxia.sink.impl.PipelineSink
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
@Deprecated public class PipelineSink extends java.lang.Object implements java.lang.reflect.InvocationHandlerDeprecated.Use theSinkWrapperapproach which doesn't require the use of dynamic proxies.May be used to invoke the same method on a List of Sinks.- Author:
- Trygve Laugstøl
- See Also:
SinkWrapper
-
-
Constructor Summary
Constructors Constructor Description PipelineSink(java.util.List<org.apache.maven.doxia.sink.Sink> pipeline)Deprecated.Constructs a PipelineSink for a given List of Sinks.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSink(org.apache.maven.doxia.sink.Sink sink)Deprecated.Add a Sink to the List of Sinks.java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)Deprecated.Invoke a Method on this PipelineSink.static org.apache.maven.doxia.sink.SinknewInstance(java.util.List<org.apache.maven.doxia.sink.Sink> pipeline)Deprecated.Returns an instance of a PipelineSink as a Sink.
-
-
-
Method Detail
-
addSink
public void addSink(org.apache.maven.doxia.sink.Sink sink)
Deprecated.Add a Sink to the List of Sinks.- Parameters:
sink- the Sink to add.
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetExceptionDeprecated.Invoke a Method on this PipelineSink.- Specified by:
invokein interfacejava.lang.reflect.InvocationHandler- Parameters:
proxy- aObjectobject.method- aMethodobject.args- an array ofObjectobjects.- Returns:
- a
Objectobject. - Throws:
java.lang.IllegalAccessException- if any.java.lang.reflect.InvocationTargetException- if any.
-
newInstance
public static org.apache.maven.doxia.sink.Sink newInstance(java.util.List<org.apache.maven.doxia.sink.Sink> pipeline)
Deprecated.Returns an instance of a PipelineSink as a Sink.- Parameters:
pipeline- A List of Sinks.- Returns:
- a
Sinkobject.
-
-