Interface MessagePackMapperBuilder

    • Method Detail

      • withDefaultMapValueConverter

        MessagePackMapperBuilder withDefaultMapValueConverter()
        Configure the mapper with default MP_MAP entity to Map converter
        Returns:
        builder
      • withDefaultMapObjectConverter

        MessagePackMapperBuilder withDefaultMapObjectConverter()
        Configure the mapper with default Map to MP_MAP entity converter
        Returns:
        builder
      • withDefaultArrayValueConverter

        MessagePackMapperBuilder withDefaultArrayValueConverter()
        Configure the mapper with default MP_ARRAY entity to List converter
        Returns:
        builder
      • withDefaultListObjectConverter

        MessagePackMapperBuilder withDefaultListObjectConverter()
        Configure the mapper with default List to MP_ARRAY entity converter
        Returns:
        builder
      • withValueConverter

        <V extends org.msgpack.value.Value,​O> MessagePackMapperBuilder withValueConverter​(org.msgpack.value.ValueType valueType,
                                                                                                ValueConverter<V,​O> converter)
        Configure the mapper with a specified MessagePack entity-to-object converter
        Type Parameters:
        V - MessagePack's entity type that the converter accepts and/or returns
        O - java object's type that the converter accepts and/or returns
        Parameters:
        valueType - MessagePack source type
        converter - MessagePack entity-to-object and object-to-entity converter
        Returns:
        builder
        See Also:
        DefaultMessagePackMapper.registerValueConverter(ValueType, ValueConverter)
      • withValueConverter

        <V extends org.msgpack.value.Value,​O> MessagePackMapperBuilder withValueConverter​(org.msgpack.value.ValueType valueType,
                                                                                                Class<O> objectClass,
                                                                                                ValueConverter<V,​O> converter)
        Configure the mapper with a specified MessagePack entity-to-object converter
        Type Parameters:
        V - MessagePack's entity type that the converter accepts and/or returns
        O - java object's type that the converter accepts and/or returns
        Parameters:
        valueType - MessagePack source type
        objectClass - target object class
        converter - MessagePack entity-to-object and object-to-entity converter
        Returns:
        builder
        See Also:
        DefaultMessagePackMapper.registerValueConverter(ValueType, Class, ValueConverter)
      • withObjectConverter

        <V extends org.msgpack.value.Value,​O> MessagePackMapperBuilder withObjectConverter​(ObjectConverter<O,​V> converter)
        Configure the mapper with a specified MessagePack object-to-entity converter
        Type Parameters:
        V - MessagePack's entity type that the converter accepts and/or returns
        O - java object's type that the converter accepts and/or returns
        Parameters:
        converter - MessagePack entity-to-object and object-to-entity converter
        Returns:
        builder
      • withObjectConverter

        <V extends org.msgpack.value.Value,​O> MessagePackMapperBuilder withObjectConverter​(Class<O> objectClass,
                                                                                                 ObjectConverter<O,​V> converter)
        Configure the mapper with a specified MessagePack object-to-entity converter
        Type Parameters:
        V - MessagePack's entity type that the converter accepts and/or returns
        O - java object's type that the converter accepts and/or returns
        Parameters:
        objectClass - source object class
        converter - MessagePack entity-to-object and object-to-entity converter
        Returns:
        builder
      • withObjectConverter

        <V extends org.msgpack.value.Value,​O> MessagePackMapperBuilder withObjectConverter​(Class<O> objectClass,
                                                                                                 Class<V> valueClass,
                                                                                                 ObjectConverter<O,​V> converter)
        Configure the mapper with a specified MessagePack object-to-entity converter
        Type Parameters:
        V - MessagePack entity type
        O - object type
        Parameters:
        objectClass - source object class
        valueClass - target object class
        converter - MessagePack entity-to-object and object-to-entity converter
        Returns:
        builder
      • build

        MessagePackMapper build()
        Build the mapper instance
        Returns:
        a new mapper instance