Package org.jresearch.gossip.exception

Examples of org.jresearch.gossip.exception.ConfiguratorException


     *
     * @throws ConfiguratorException
     *             DOCUMENT ME!
     */
    public String get(String key) throws ConfiguratorException {
        if (this.props.getProperty(key) == null) { throw new ConfiguratorException(
                "Parameter by key=" + key + " not found"); }

        return this.props.getProperty(key);
    }
View Full Code Here


     *
     * @throws ConfiguratorException
     *             DOCUMENT ME!
     */
    public int getInt(String key) throws ConfiguratorException {
        if (this.props.getProperty(key) == null) { throw new ConfiguratorException(
                "Parameter by key=" + key + " not found"); }

        return Integer.parseInt(this.props.getProperty(key));
    }
View Full Code Here

     *
     * @throws ConfiguratorException
     *            
     */
    public boolean getBoolean(String key) throws ConfiguratorException {
        if (this.props.getProperty(key) == null) { throw new ConfiguratorException(
                "Parameter by key=" + key + " not found"); }

        return this.props.getProperty(key).equalsIgnoreCase(VALUES.TRUE);
    }
View Full Code Here

TOP

Related Classes of org.jresearch.gossip.exception.ConfiguratorException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.