package com.fitbank.web;

import org.apache.commons.configuration.Configuration;

import com.fitbank.common.properties.PropertiesHandler;

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

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

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

    @SuppressWarnings("deprecation")
    private HBParam() {
        super("hbparam");
    }

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

}
