Package org.jclouds.karaf.services

Examples of org.jclouds.karaf.services.InvalidConfigurationException


     * @param properties
     * @throws InvalidConfigurationException
     */
    public static void validate(ApiMetadata apiMetadata, Dictionary properties) throws InvalidConfigurationException {
        if (Strings.isNullOrEmpty((String) properties.get(ChefConstants.CLIENT_NAME))) {
            throw new InvalidConfigurationException("No client name specified.");
        }

        if (Strings.isNullOrEmpty((String) properties.get(ChefConstants.VALIDATOR_NAME))) {
            throw new InvalidConfigurationException("No validator name specified.");
        }

        if (Strings.isNullOrEmpty((String) properties.get(ChefConstants.ENDPOINT)) && !apiMetadata.getDefaultEndpoint().isPresent()) {
            throw new InvalidConfigurationException("No endpoint specified specified.");
        }
    }
View Full Code Here

TOP

Related Classes of org.jclouds.karaf.services.InvalidConfigurationException

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.