renombrar variable
This commit is contained in:
@@ -16,7 +16,7 @@ import java.util.Properties;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public class GestorConfiguracion {
|
public class GestorConfiguracion {
|
||||||
private static final String RUTA_CONFIGURACION = "config/application.properties";
|
private static final String RUTA_FICHERO_CONFIGURACION = "config/application.properties";
|
||||||
private static final Properties PROPIEDADES_CONFIGURACION = new Properties();
|
private static final Properties PROPIEDADES_CONFIGURACION = new Properties();
|
||||||
|
|
||||||
// Constructor privado: de esta manera conseguimos que esta clase no se puede instanciar.
|
// Constructor privado: de esta manera conseguimos que esta clase no se puede instanciar.
|
||||||
@@ -24,7 +24,7 @@ public class GestorConfiguracion {
|
|||||||
|
|
||||||
// Este bloque se ejecuta una sola vez, cuando se carga la clase GestorConfiguracion
|
// Este bloque se ejecuta una sola vez, cuando se carga la clase GestorConfiguracion
|
||||||
static {
|
static {
|
||||||
try (FileInputStream fichero = new FileInputStream(RUTA_CONFIGURACION)) {
|
try (FileInputStream fichero = new FileInputStream(RUTA_FICHERO_CONFIGURACION)) {
|
||||||
|
|
||||||
PROPIEDADES_CONFIGURACION.load(fichero);
|
PROPIEDADES_CONFIGURACION.load(fichero);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user