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

com.buschmais.jqassistant.scm.maven.configuration.source.EmptyConfigSource Maven / Gradle / Ivy

Go to download

jQAssistant plugin for Apache Maven to integrate jQAssistant into a Maven based project.

There is a newer version: 2.5.0
Show newest version
package com.buschmais.jqassistant.scm.maven.configuration.source;

import java.util.Set;

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

import static java.util.Collections.emptySet;
import static lombok.AccessLevel.PRIVATE;

/**
 * Empty config source which provides no properties.
 */
@NoArgsConstructor(access = PRIVATE)
public final class EmptyConfigSource implements ConfigSource {

    public static final EmptyConfigSource INSTANCE = new EmptyConfigSource();

    @Override
    public Set getPropertyNames() {
        return emptySet();
    }

    @Override
    public String getValue(String s) {
        return null;
    }

    @Override
    public String getName() {
        return "Empty";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy