package com.fitbank.common.exception;

import org.apache.commons.configuration.Configuration;

import com.fitbank.common.properties.PropertiesHandler;

/**
 * Lee las propiedades de "paths"
 *
 * @author FitBank
 */
public final class PathParameter extends PropertiesHandler {

    public static Configuration getConfig() {
        return getConfig("paths");
    }

    //<editor-fold defaultstate="collapsed" desc="Deprecado">
    private static PathParameter instance = null;

    @SuppressWarnings("deprecation")
    private PathParameter() {
        super("paths");
    }

    /**
     * @return La instancia
     *
     * @deprecated Usar mejor getConfig()
     */
    @Deprecated
    public static synchronized PathParameter getInstance() {
        if (instance == null) {
            instance = new PathParameter();
        }
        return instance;
    }
    //</editor-fold>

}
