/** * Updates the contents of this definition with values from the specified new defintion. The intention is for this * to be used as a merge between this attached instance and a detached instance. The name and resourceTypes will NOT * be updated as part of this call; they are used as identifiers and should already be the same if this merge is * being performed. * * @param newType contains new data to merge into this definition; cannot be <code>null</code> */ public void update(PackageType newType) { this.displayName = newType.getDisplayName(); this.description = newType.getDescription(); this.category = newType.getCategory(); this.discoveryInterval = newType.getDiscoveryInterval(); // Don't update references... these have to be linked to persistent objects // this.deploymentConfigurationDefinition = newType.getDeploymentConfigurationDefinition(); // this.packageExtraPropertiesDefinition = newType.getPackageExtraPropertiesDefinition(); this.isCreationData = newType.isCreationData(); this.packages = newType.getPackages(); }