All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arangodb.vst.VstModule Maven / Gradle / Ivy

There is a newer version: 7.15.0
Show newest version
package com.arangodb.vst;

import com.arangodb.vst.internal.AuthenticationRequest;
import com.arangodb.vst.internal.JwtAuthenticationRequest;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.module.SimpleModule;

import java.util.function.Supplier;

enum VstModule implements Supplier {
    INSTANCE;

    private final SimpleModule module;

    VstModule() {
        module = new SimpleModule();
        module.addSerializer(AuthenticationRequest.class, VstSerializers.AUTHENTICATION_REQUEST);
        module.addSerializer(JwtAuthenticationRequest.class, VstSerializers.JWT_AUTHENTICATION_REQUEST);
    }

    @Override
    public Module get() {
        return module;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy