public class VavrBundle extends Object implements io.dropwizard.Bundle
| Constructor and Description |
|---|
VavrBundle()
Add Vavr support (Jackson, Jersey) to Dropwizard.
|
VavrBundle(boolean registerMessageBodyWriters)
Add Vavr support (Jackson, Jersey) to Dropwizard.
|
VavrBundle(io.vavr.jackson.datatype.VavrModule.Settings settings,
boolean registerMessageBodyWriters)
Add Vavr support (Jackson, Jersey) to Dropwizard.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(io.dropwizard.setup.Environment environment) |
public VavrBundle()
public VavrBundle(boolean registerMessageBodyWriters)
registerMessageBodyWriters - Register EitherMessageBodyWriter and ValueMessageBodyWriter
in ObjectMapper.
NOTE: This will make it impossible to serialize or deserialize classes
such as Either, Option, and
Lazy with Jackson. Use with care!public VavrBundle(io.vavr.jackson.datatype.VavrModule.Settings settings,
boolean registerMessageBodyWriters)
settings - Settings for Jackson VavrModuleregisterMessageBodyWriters - Register EitherMessageBodyWriter and ValueMessageBodyWriter
in ObjectMapper.
NOTE: This will make it impossible to serialize or deserialize classes
such as Either, Option, and
Lazy with Jackson. Use with care!public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize in interface io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>public void run(io.dropwizard.setup.Environment environment)
run in interface io.dropwizard.BundleCopyright © 2020. All rights reserved.