Package org.gbif.api.ws.mixin
Class Mixins
java.lang.Object
org.gbif.api.ws.mixin.Mixins
Mixins are typically used to leave serialization-oriented annotations outside the models to avoid
introducing coupling on a specific SerDe.
This class provides access to predefined mixins used in the GBIF web service application (client and server).
-
Method Summary
Modifier and TypeMethodDescriptionReturn an immutable map of the predefined Jackson Mixins used by the web services.getPredefinedMixins
(Predicate<Class<?>> keyFilter) Get an immutable map of the predefined Jackson Mixins after the provided keyFilter is applied.
-
Method Details
-
getPredefinedMixins
Return an immutable map of the predefined Jackson Mixins used by the web services.- Returns:
- immutable map of the predefined Jackson Mixins
-
getPredefinedMixins
Get an immutable map of the predefined Jackson Mixins after the provided keyFilter is applied.- Parameters:
keyFilter
- predicate to filter the predefined mixins based on the model class- Returns:
- immutable map of the predefined Jackson Mixins after applying the predicate
-