Class StreamWriteFeatureDecorator<F extends TokenStreamFactory, B extends TSFBuilder<F,B> >
java.lang.Object
net.logstash.logback.decorate.FeatureDecorator<B, StreamWriteFeature>
net.logstash.logback.decorate.StreamWriteFeatureDecorator<F,B>
- All Implemented Interfaces:
Decorator<B>, TokenStreamFactoryBuilderDecorator<F,B>
public class StreamWriteFeatureDecorator<F extends TokenStreamFactory, B extends TSFBuilder<F,B>>
extends FeatureDecorator<B, StreamWriteFeature>
implements TokenStreamFactoryBuilderDecorator<F,B>
A
TokenStreamFactoryBuilderDecorator that allows enabling/disabling of StreamWriteFeature features.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Bconfigure(B builder, StreamWriteFeature feature, boolean state) Configures the given feature on the given decoratable.Methods inherited from class FeatureDecorator
addDisable, addEnable, decorate, disable, enable
-
Constructor Details
-
StreamWriteFeatureDecorator
public StreamWriteFeatureDecorator()
-
-
Method Details
-
configure
Description copied from class:FeatureDecoratorConfigures the given feature on the given decoratable.- Specified by:
configurein classFeatureDecorator<B extends TSFBuilder<F,B>, StreamWriteFeature> - Parameters:
builder- the object to configurefeature- the feature to enable or disablestate- true to enable the feature, false to disable the feature.- Returns:
- the decorated object
-