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

io.smallrye.config.common.AbstractConfigSource Maven / Gradle / Ivy

There is a newer version: 3.10.1
Show newest version
package io.smallrye.config.common;

import java.io.Serializable;

import org.eclipse.microprofile.config.spi.ConfigSource;

public abstract class AbstractConfigSource implements ConfigSource, Serializable {
    private static final long serialVersionUID = 9018847720072978115L;

    private final int ordinal;
    private final String name;

    public AbstractConfigSource(String name, int ordinal) {
        this.name = name;
        this.ordinal = ordinal;
    }

    @Override
    public int getOrdinal() {
        return ordinal;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return getName();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy