Make FreePortFinder support Jackson's polymorphic deserialization #547
Labels
new feature
A new feature such as a new class, method, package, group of classes, etc.
Milestone
FreePortFinder
should allow for deserialization into a specific type using Jackson's polymorphic deserialization feature.This will allow new implementations to be easily configured in YAML. For example:
In the above the
freePortFinder
is configured using thetype
property to specify the implementation, which needs to map to a class annotated with the same type in a@JsonTypeName
annotation. For example:For the three out-of-the-box implementations, use the following as the type name:
All this "just works" because of Dropwizard support for Polymorphic configuration
The text was updated successfully, but these errors were encountered: