Interface TokenStreamFactoryBuilderDecorator<F extends TokenStreamFactory, B extends TSFBuilder<F,B>>

All Superinterfaces:
Decorator<B>
All Known Implementing Classes:
CborWriteFeatureDecorator, CharacterEscapesDecorator, CompositeTokenStreamFactoryBuilderDecorator, JsonWriteFeatureDecorator, SmileWriteFeatureDecorator, StreamWriteFeatureDecorator, TokenStreamFactoryFeatureDecorator, YamlWriteFeatureDecorator

public interface TokenStreamFactoryBuilderDecorator<F extends TokenStreamFactory, B extends TSFBuilder<F,B>> extends Decorator<B>
Decorates the TSFBuilder used by a AbstractCompositeJsonFormatter.

This allows you to customize the factory used by the formatters.

Implementations must be idempotent. The decorator configured on a formatter is called each time a formatter is started, and there is no way to 'un-decorate' the factory when the formatter is stopped. So, the factory could be decorated multiple times if the formatter is restarted.