/*
 * 
 */
package com.fp.bpmlib.db;

import com.fp.common.properties.PropertiesHandler;

// TODO: Auto-generated Javadoc
/**
 * Class BPMProperties encargada de.
 * 
 * @author gfiallos
 */
public final class BPMProperties extends PropertiesHandler {

    /** Constante GUVNOR_URL. */
    public static final String GUVNOR_URL = "guvnor.url";

    /** Constante GUVNOR_CHANGE_SET. */
    public static final String GUVNOR_CHANGE_SET = "guvnor.change.set";

    /** Constante GUVNOR_REFRESH. */
    public static final String GUVNOR_REFRESH = "guvnor.refresh";

    /** Constante BPM_MEMORY. */
    public static final String BPM_MEMORY = "bpm.memory";

    /** Constante TASK_IP. */
    public static final String TASK_IP = "task.ip";

    /** Constante TASK_IP_SERVER. */
    public static final String TASK_IP_SERVER = "task.ip.server";

    /** Constante TASK_PORT. */
    public static final String TASK_PORT = "task.port";

    /** Constante FLOWS_PACKAGE. */
    public static final String FLOWS_PACKAGE = "flows.package";

    /** Constante FLOWS_SNAPSHOT. */
    public static final String FLOWS_SNAPSHOT = "flows.snapshot";

    /** Constante INBOX_ICON_PATH. */
    public static final String INBOX_ICON_PATH = "inbox.icon.path";

    /** Constante INBOX_ICON_EXTENSION. */
    public static final String INBOX_ICON_EXTENSION = "inbox.icon.extension";

    /** Constante GUVNOR_SECURITY_BASIC_AUTHENTICATION. */
    public static final String GUVNOR_SECURITY_BASIC_AUTHENTICATION = "guvnor.security.basicAuthentication";

    /** Constante GUVNOR_SECURITY_USERNAME. */
    public static final String GUVNOR_SECURITY_USERNAME = "guvnor.security.username";

    /** Constante GUVNOR_SECURITY_PASSWORD. */
    public static final String GUVNOR_SECURITY_PASSWORD = "guvnor.security.password";

    /** El valor de instance. */
    private static BPMProperties instance = null;

    /**
     * Obtiene la Unica instancia de BPMProperties.
     * 
     * @return Unica instancia de BPMProperties
     * @throws Exception
     */
    public static BPMProperties getInstance() throws Exception {
        synchronized (BPMProperties.class) {
            if (BPMProperties.instance == null) {
                BPMProperties.instance = new BPMProperties();
            }
            return BPMProperties.instance;
        }
    }

    /**
     * Crea una nueva instancia de bPM properties.
     * 
     * @throws Exception la exception
     */
    private BPMProperties() throws Exception {
        super("bpm");
    }

}
