Class Mixins


  • public class Mixins
    extends Object
    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 Detail

      • getPredefinedMixins

        public static Map<Class<?>,​Class<?>> getPredefinedMixins()
        Return an immutable map of the predefined Jackson Mixins used by the web services.
        Returns:
        immutable map of the predefined Jackson Mixins
      • getPredefinedMixins

        public static Map<Class<?>,​Class<?>> getPredefinedMixins​(Predicate<Class<?>> keyFilter)
        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