Package org.apache.maven.doxia.sink.impl
Class PipelineSink
java.lang.Object
org.apache.maven.doxia.sink.impl.PipelineSink
- All Implemented Interfaces:
InvocationHandler
May be used to invoke the same method on a List of Sinks.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPipelineSink(List<Sink> pipeline) Constructs a PipelineSink for a given List of Sinks. -
Method Summary
-
Field Details
-
pipeline
-
-
Constructor Details
-
PipelineSink
Constructs a PipelineSink for a given List of Sinks.- Parameters:
pipeline- A List of Sinks.
-
-
Method Details
-
addSink
Add a Sink to the List of Sinks.- Parameters:
sink- the Sink to add.
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws IllegalAccessException, InvocationTargetException Invoke a Method on this PipelineSink.- Specified by:
invokein interfaceInvocationHandler- Parameters:
proxy- aObjectobject.method- aMethodobject.args- an array ofObjectobjects.- Returns:
- a
Objectobject. - Throws:
IllegalAccessException- if any.InvocationTargetException- if any.
-
newInstance
Returns an instance of a PipelineSink as a Sink.- Parameters:
pipeline- A List of Sinks.- Returns:
- a
Sinkobject.
-