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

ru.tinkoff.plugins.buildmetrics.jvm.labels.JvmLabelsFactory.kt Maven / Gradle / Ivy

The newest version!
package ru.tinkoff.plugins.buildmetrics.jvm.labels

import ru.tinkoff.plugins.buildmetrics.api.factories.Factory
import ru.tinkoff.plugins.buildmetrics.api.labels.Label
import ru.tinkoff.plugins.buildmetrics.utils.system.SystemProperties
import ru.tinkoff.plugins.buildmetrics.utils.system.SystemPropertiesImpl

/**
 * Labels:
 * - java_vendor;
 * - java_specification_version;
 * - java_runtime_version;
 *
 * @throws IllegalStateException if system property is not found.
 */
class JvmLabelsFactory(
    private val systemProperties: SystemProperties = SystemPropertiesImpl(),
) : Factory.Labels {

    override fun create(): List> = jvmLabels(systemProperties)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy