Class BaseJacksonConfiguration.Builder<T extends BaseJacksonConfiguration.Builder<?,?>,S extends Configuration>

java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<S>
com.arpnetworking.configuration.jackson.BaseJacksonConfiguration.Builder<T,S>
Type Parameters:
T - type of the builder
S - type of the object to be built
All Implemented Interfaces:
com.arpnetworking.commons.builder.Builder<S>
Direct Known Subclasses:
DynamicConfiguration.Builder, StaticConfiguration.Builder
Enclosing class:
BaseJacksonConfiguration

protected abstract static class BaseJacksonConfiguration.Builder<T extends BaseJacksonConfiguration.Builder<?,?>,S extends Configuration> extends com.arpnetworking.commons.builder.OvalBuilder<S>
Builder implementation for BaseJacksonConfiguration.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Builder(Function<T,S> targetConstructor)
    Protected constructor for subclasses.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract T
    Called by setters to always return appropriate subclass of BaseJacksonConfiguration.Builder, even from setters of base class.
    setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper value)
    Set the ObjectMapper instance.

    Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder

    build, clone, clone, construct, isSelfValidating, toString, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Builder

      protected Builder(Function<T,S> targetConstructor)
      Protected constructor for subclasses.
      Parameters:
      targetConstructor - The constructor for the concrete type to be created by this builder.
  • Method Details

    • setObjectMapper

      public T setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper value)
      Set the ObjectMapper instance. Optional. Default is created by ObjectMapperFactory. Cannot be null.
      Parameters:
      value - The ObjectMapper instance.
      Returns:
      This BaseJacksonConfiguration.Builder instance.
    • self

      protected abstract T self()
      Called by setters to always return appropriate subclass of BaseJacksonConfiguration.Builder, even from setters of base class.
      Returns:
      instance with correct BaseJacksonConfiguration.Builder class type.