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

io.polyglotted.applauncher.settings.SettingsHolder Maven / Gradle / Ivy

The newest version!
package io.polyglotted.applauncher.settings;

import com.typesafe.config.Config;
import io.polyglotted.applauncher.crypto.CryptoClient;

import java.util.Map;

public interface SettingsHolder {

    @SuppressWarnings("unused") Config config();

    default  T proxy(Class configurationInterface) { return proxy(configurationInterface, new CryptoClient()); }

     T proxy(Class configurationInterface, CryptoClient cryptoClient);

    Map asProperties(String prefix, boolean includePrefix);

    boolean hasValue(String name);

    String stringValue(String name, String defValue);

    String stringValue(String name);

    int intValue(String name, int defValue);

    int intValue(String name);

    boolean booleanValue(String name, boolean defValue);

    boolean booleanValue(String name);

    long longValue(String name, long defValue);

    long longValue(String name);

    double doubleValue(String name, double defValue);

    double doubleValue(String name);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy