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

io.quarkus.info.runtime.JavaInfoContributor Maven / Gradle / Ivy

package io.quarkus.info.runtime;

import java.util.LinkedHashMap;
import java.util.Map;

import io.quarkus.info.runtime.spi.InfoContributor;

public class JavaInfoContributor implements InfoContributor {

    @Override
    public String name() {
        return "java";
    }

    @Override
    public Map data() {
        //TODO: should we add more information like 'java.runtime.*' and 'java.vm.*' ?
        Map result = new LinkedHashMap<>();
        result.put("version", getVersion());
        return result;
    }

    static String getVersion() {
        return System.getProperty("java.version");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy