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

net.nemerosa.ontrack.model.structure.ServiceConfiguration Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.structure;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

/**
 * Association between a configuration service ID and an actual configuration data.
 */
@Data
public class ServiceConfiguration {

    private final String id;
    private final JsonNode data;

    public static ServiceConfiguration of(JsonNode node) {
        return new ServiceConfiguration(
                node.get("id").asText(),
                node.get("data")
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy