Package net.sf.wfnm

Examples of net.sf.wfnm.ConfigException


     */
    private NotifyFactory() {
        Class calcClass = Config.getInstance().getUrlCalculator();

        if (!UrlCalculator.class.isAssignableFrom(calcClass)) {
            throw new ConfigException("Class '" + calcClass + "' cannot be assigned to interface '" +
                UrlCalculator.class.getName() + "'");
        }

        try {
            urlCalculator = (UrlCalculator) calcClass.newInstance();
        } catch (Exception e) {
            throw new ConfigException("Unable to instantiate the class '" + calcClass.getName() + "'", e);
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.wfnm.ConfigException

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.