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

com.github.charlemaznable.vertx.common.ParamsConfigable Maven / Gradle / Ivy

There is a newer version: 2022.0.2
Show newest version
package com.github.charlemaznable.vertx.common;

import com.github.charlemaznable.core.lang.Objectt.ParamsAppliable;
import lombok.val;

import static org.apache.commons.lang3.StringUtils.isBlank;

public interface ParamsConfigable extends ParamsAppliable {

    String fetchConfigValue(String[] params);

    void applyConfigValue(String configValue);

    @Override
    default void applyParams(String[] params) {
        val configValue = fetchConfigValue(params);
        // none value or blank value or error params
        if (isBlank(configValue)) return;
        applyConfigValue(configValue);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy