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

com.yahoo.vespa.flags.UnboundJacksonFlag Maven / Gradle / Ivy

There is a newer version: 8.458.13
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.flags;

/**
 * @author hakonhall
 */
public class UnboundJacksonFlag extends UnboundFlagImpl, UnboundJacksonFlag> {
    public UnboundJacksonFlag(FlagId id, T defaultValue, Class jacksonClass) {
        this(id, defaultValue, new FetchVector(), jacksonClass);
    }

    public UnboundJacksonFlag(FlagId id, T defaultValue, FetchVector defaultFetchVector, Class jacksonClass) {
        super(id, defaultValue, defaultFetchVector,
                new JacksonSerializer<>(jacksonClass),
                (id2, defaultValue2, vector2) -> new UnboundJacksonFlag<>(id2, defaultValue2, vector2, jacksonClass),
                JacksonFlag::new);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy