Examples of validateRawConfiguration()


Examples of org.rhq.core.pluginapi.configuration.ResourceConfigurationFacet.validateRawConfiguration()

        ResourceConfigurationFacet facet = loadResourceConfigFacetWithWriteLock(resourceId);
        StringBuilder errors = new StringBuilder();

        for (RawConfiguration rawConfig : configuration.getRawConfigurations()) {
            try {
                facet.validateRawConfiguration(rawConfig);
                facet.persistRawConfiguration(rawConfig);
            }
            catch (Throwable t) {
                // TODO Might want to specify in the error detail whether the validate or update call failed
                errors.append(t.getMessage()).append("\n\n");
View Full Code Here

Examples of org.rhq.core.pluginapi.configuration.ResourceConfigurationFacet.validateRawConfiguration()

                throw new PluginContainerException(t.getMessage(), t);
            }
        } else {
            for (RawConfiguration rawConfiguration : configuration.getRawConfigurations()) {
                try {
                    facet.validateRawConfiguration(rawConfiguration);
                } catch (IllegalArgumentException e) {
                    success = false;
                    rawConfiguration.errorMessage = e.getMessage();
                } catch (Throwable t) {
                    success = false;
View Full Code Here

Examples of org.rhq.core.pluginapi.configuration.ResourceConfigurationFacet.validateRawConfiguration()

            errors.append(t.getMessage());
        }

        for (RawConfiguration rawConfig : configuration.getRawConfigurations()) {
            try {
                facet.validateRawConfiguration(rawConfig);
                facet.persistRawConfiguration(rawConfig);
            }
            catch (Throwable t) {
                errors.append(t.getMessage()).append("\n\n");
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.