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

io.rtr.alchemy.service.config.AlchemyServiceConfigurationImpl Maven / Gradle / Ivy

package io.rtr.alchemy.service.config;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.google.common.collect.Maps;
import io.rtr.alchemy.identities.Identity;
import io.rtr.alchemy.service.jackson.ClassKeyDeserializer;
import io.dropwizard.Configuration;

import javax.validation.constraints.NotNull;
import java.util.Map;

public class AlchemyServiceConfigurationImpl extends Configuration implements AlchemyServiceConfiguration {
    @JsonProperty
    @JsonDeserialize(keyUsing = ClassKeyDeserializer.class)
    private final Map, IdentityMapping> identities = Maps.newHashMap();

    @Override
    public Map, IdentityMapping> getIdentities() {
        return identities;
    }

    @JsonProperty
    @NotNull
    private final StoreProviderConfiguration provider = null;

    @Override
    public StoreProviderConfiguration getProvider() {
        return provider;
    }

    @JsonProperty
    private final CacheStrategyConfiguration cacheStrategy = null;

    @Override
    public CacheStrategyConfiguration getCacheStrategy() {
        return cacheStrategy;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy