Package org.rhq.core.domain.plugin

Examples of org.rhq.core.domain.plugin.PluginConfigurationRequiredException


        for (PropertyDefinition propDef : configDef.getPropertyDefinitions().values()) {
            if (propDef.isRequired() && propDef instanceof PropertyDefinitionSimple) {
                Property prop = configuration.get(propDef.getName());
                PropertySimple simple = (PropertySimple) prop;
                if (simple == null || simple.getStringValue() == null || "".equals(simple.getStringValue())) {
                    throw new PluginConfigurationRequiredException("Plugin [" + plugin.getDisplayName()
                        + "] could not be enabled, because some required configuration fields are not set.");
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.plugin.PluginConfigurationRequiredException

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.