com.github.ldeitos.validation.impl.configuration.ConfigInfoProvider Maven / Gradle / Ivy
package com.github.ldeitos.validation.impl.configuration;
import static com.github.ldeitos.constants.Constants.CONFIGURATION_FILE;
import static com.github.ldeitos.constants.Constants.CONFIGURATION_PATH;
import jakarta.inject.Singleton;
/**
* Confirg information provider. Auxiliar class to provide boot configuration informations and make easy mock in unit test.
*/
@Singleton
public class ConfigInfoProvider {
public String getConfigFileName() {
return CONFIGURATION_FILE;
}
public String getConfigPath() {
return CONFIGURATION_PATH;
}
protected boolean isInTest() {
return false;
}
public String getConfigFileLocation(){
return getConfigPath() + "/" + getConfigFileName();
}
}