com.arangodb.vst.VstModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vst-protocol Show documentation
Show all versions of vst-protocol Show documentation
VST Protocol module for ArangoDB Java Driver
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