Package org.apache.maven.doxia.sink.impl
Class BufferingSinkProxyFactory
- java.lang.Object
-
- org.apache.maven.doxia.sink.impl.BufferingSinkProxyFactory
-
- All Implemented Interfaces:
SinkWrapperFactory
public class BufferingSinkProxyFactory extends java.lang.Object implements SinkWrapperFactory
Buffers all method calls on the proxied Sink until itsSink.flush()is called.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBufferingSinkProxyFactory.BufferingSink
-
Constructor Summary
Constructors Constructor Description BufferingSinkProxyFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BufferingSinkProxyFactory.BufferingSinkcastAsBufferingSink(org.apache.maven.doxia.sink.Sink sink)org.apache.maven.doxia.sink.SinkcreateWrapper(org.apache.maven.doxia.sink.Sink delegate)By default all wrappers just delegate each method to the wrapped sink's method.intgetPriority()Determines the order of sink wrappers.
-
-
-
Method Detail
-
createWrapper
public org.apache.maven.doxia.sink.Sink createWrapper(org.apache.maven.doxia.sink.Sink delegate)
Description copied from interface:SinkWrapperFactoryBy default all wrappers just delegate each method to the wrapped sink's method. For certain Sink methods the wrapper may modify the sink before/after or instead of calling the delegate's method.- Specified by:
createWrapperin interfaceSinkWrapperFactory- Parameters:
delegate- the delegate- Returns:
- a new sink wrapping the given one
-
castAsBufferingSink
public static BufferingSinkProxyFactory.BufferingSink castAsBufferingSink(org.apache.maven.doxia.sink.Sink sink)
-
getPriority
public int getPriority()
Description copied from interface:SinkWrapperFactoryDetermines the order of sink wrappers. The wrapper factory with the highest priority is called first.- Specified by:
getPriorityin interfaceSinkWrapperFactory- Returns:
- the priority of this factory
-
-