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 Details

    • StreamWriteFeatureDecorator

      public StreamWriteFeatureDecorator()
  • Method Details

    • configure

      protected B configure(B builder, StreamWriteFeature feature, boolean state)
      Description copied from class: FeatureDecorator
      Configures the given feature on the given decoratable.
      Specified by:
      configure in class FeatureDecorator<B extends TSFBuilder<F,B>, StreamWriteFeature>
      Parameters:
      builder - the object to configure
      feature - the feature to enable or disable
      state - true to enable the feature, false to disable the feature.
      Returns:
      the decorated object