Package org.rhq.core.domain.configuration

Examples of org.rhq.core.domain.configuration.Configuration.deepCopy()


        // Rename the JNDI name for that resource

        Configuration configuration = manager.getResourceConfiguration(datasource);
        assert configuration.getSimple("jndiName").getStringValue().equals("DefaultDS") : "Incorrect configuration retrieved";

        configuration = configuration.deepCopy();
        configuration.getSimple("jndiName").setStringValue("DeleteMeDS");

        // Tell the manager to update the configuration

        manager.updateResource(datasource, configuration);
View Full Code Here


        Configuration originalTemplate = templates.get(selectedTemplateName).getConfiguration();

        // TODO this should be handled elsewhere
        // currently this is not a copy so we have to clone it so we dont go around updating the original one
        // associated with this configurtion definition
        template = originalTemplate.deepCopy();

        // populate the empty elements in the template with
        ConfigurationUtility.normalizeConfiguration(template, serviceType.getResourceConfigurationDefinition());
    }
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.