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

la.renzhen.rtpt.config.ConfigurationProvider Maven / Gradle / Ivy

package la.renzhen.rtpt.config;

import java.lang.reflect.Type;
import java.util.Map;

public interface ConfigurationProvider {

    Map allConfiguration();

    String getProperty(String key);

    default  T getProperty(String key, Class type, String defaultValue) {
        return getProperty(key, (Type) type, defaultValue);
    }

    default  T getProperty(String key, Class type) {
        return getProperty(key, (Type) type);
    }

     T getProperty(String key, Type type, String defaultValue);

    default  T getProperty(String key, Type type) {
        return getProperty(key, type, null);
    }

     T invoke(Class configurationClass);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy