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 builderS
- 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
self()
Called by setters to always return appropriate subclass ofBaseJacksonConfiguration.Builder
, even from setters of base class.setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper value) Set theObjectMapper
instance.Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder
build, clone, clone, construct, isSelfValidating, toString, validate
-
Constructor Details
-
Builder
Protected constructor for subclasses.- Parameters:
targetConstructor
- The constructor for the concrete type to be created by this builder.
-
-
Method Details
-
setObjectMapper
Set theObjectMapper
instance. Optional. Default is created byObjectMapperFactory
. Cannot be null.- Parameters:
value
- TheObjectMapper
instance.- Returns:
- This
BaseJacksonConfiguration.Builder
instance.
-
self
Called by setters to always return appropriate subclass ofBaseJacksonConfiguration.Builder
, even from setters of base class.- Returns:
- instance with correct
BaseJacksonConfiguration.Builder
class type.
-